1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/integer/constants_spec.rb

26 lines
503 B
Ruby
Raw Normal View History

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