aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/integer/right_shift_spec.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-21 01:16:26 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-21 01:19:55 +0900
commit9c73c756244fa27ffa99d81dcc73a4ad14198002 (patch)
tree14b0ea9059b8c31e276531a1df712ead4e158cdb /spec/ruby/core/integer/right_shift_spec.rb
parentfb8f011422c645ebe29e94c3fb2079af73d1d35f (diff)
downloadruby-9c73c756244fa27ffa99d81dcc73a4ad14198002.tar.gz
Use Integer instead of Fixnum/Bignum
Diffstat (limited to 'spec/ruby/core/integer/right_shift_spec.rb')
-rw-r--r--spec/ruby/core/integer/right_shift_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/ruby/core/integer/right_shift_spec.rb b/spec/ruby/core/integer/right_shift_spec.rb
index 1eac6cb5bc..62cbe862b9 100644
--- a/spec/ruby/core/integer/right_shift_spec.rb
+++ b/spec/ruby/core/integer/right_shift_spec.rb
@@ -56,15 +56,15 @@ describe "Integer#>> (with n >> m)" do
(3 >> bignum_value).should == 0
end
- it "returns an Bignum == fixnum_max * 2 when fixnum_max >> -1 and n > 0" do
+ it "returns an Integer == fixnum_max * 2 when fixnum_max >> -1 and n > 0" do
result = fixnum_max >> -1
- result.should be_an_instance_of(Bignum)
+ result.should be_an_instance_of(Integer)
result.should == fixnum_max * 2
end
- it "returns an Bignum == fixnum_min * 2 when fixnum_min >> -1 and n < 0" do
+ it "returns an Integer == fixnum_min * 2 when fixnum_min >> -1 and n < 0" do
result = fixnum_min >> -1
- result.should be_an_instance_of(Bignum)
+ result.should be_an_instance_of(Integer)
result.should == fixnum_min * 2
end
@@ -153,19 +153,19 @@ describe "Integer#>> (with n >> m)" do
(@bignum >> 68).should == 0
end
- it "returns 0 when m is a Bignum" do
+ it "returns 0 when m is an Integer" do
(@bignum >> bignum_value).should == 0
end
- it "returns a Fixnum == fixnum_max when (fixnum_max * 2) >> 1 and n > 0" do
+ it "returns an Integer == fixnum_max when (fixnum_max * 2) >> 1 and n > 0" do
result = (fixnum_max * 2) >> 1
- result.should be_an_instance_of(Fixnum)
+ result.should be_an_instance_of(Integer)
result.should == fixnum_max
end
- it "returns a Fixnum == fixnum_min when (fixnum_min * 2) >> 1 and n < 0" do
+ it "returns an Integer == fixnum_min when (fixnum_min * 2) >> 1 and n < 0" do
result = (fixnum_min * 2) >> 1
- result.should be_an_instance_of(Fixnum)
+ result.should be_an_instance_of(Integer)
result.should == fixnum_min
end