2019-11-30 15:26:52 -05:00
|
|
|
require_relative '../../spec_helper'
|
|
|
|
|
2020-12-27 11:35:32 -05:00
|
|
|
describe "Fixnum" do
|
|
|
|
it "is unified into Integer" do
|
|
|
|
suppress_warning do
|
|
|
|
Fixnum.should equal(Integer)
|
2019-11-30 15:26:52 -05:00
|
|
|
end
|
2020-12-27 11:35:32 -05:00
|
|
|
end
|
2019-11-30 15:26:52 -05:00
|
|
|
|
2020-12-27 11:35:32 -05:00
|
|
|
it "is deprecated" do
|
|
|
|
-> { Fixnum }.should complain(/constant ::Fixnum is deprecated/)
|
2019-11-30 15:26:52 -05:00
|
|
|
end
|
2020-12-27 11:35:32 -05:00
|
|
|
end
|
2019-11-30 15:26:52 -05:00
|
|
|
|
2020-12-27 11:35:32 -05:00
|
|
|
describe "Bignum" do
|
|
|
|
it "is unified into Integer" do
|
|
|
|
suppress_warning do
|
|
|
|
Bignum.should equal(Integer)
|
2019-11-30 15:26:52 -05:00
|
|
|
end
|
2020-12-27 11:35:32 -05:00
|
|
|
end
|
2019-11-30 15:26:52 -05:00
|
|
|
|
2020-12-27 11:35:32 -05:00
|
|
|
it "is deprecated" do
|
|
|
|
-> { Bignum }.should complain(/constant ::Bignum is deprecated/)
|
2019-11-30 15:26:52 -05:00
|
|
|
end
|
|
|
|
end
|