diff options
Diffstat (limited to 'spec/ruby/core/integer/right_shift_spec.rb')
-rw-r--r-- | spec/ruby/core/integer/right_shift_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/integer/right_shift_spec.rb b/spec/ruby/core/integer/right_shift_spec.rb index 62cbe862b9..6abcd8d714 100644 --- a/spec/ruby/core/integer/right_shift_spec.rb +++ b/spec/ruby/core/integer/right_shift_spec.rb @@ -56,13 +56,13 @@ describe "Integer#>> (with n >> m)" do (3 >> bignum_value).should == 0 end - it "returns an Integer == fixnum_max * 2 when fixnum_max >> -1 and n > 0" do + it "returns an Bignum == fixnum_max * 2 when fixnum_max >> -1 and n > 0" do result = fixnum_max >> -1 result.should be_an_instance_of(Integer) result.should == fixnum_max * 2 end - it "returns an Integer == fixnum_min * 2 when fixnum_min >> -1 and n < 0" do + it "returns an Bignum == fixnum_min * 2 when fixnum_min >> -1 and n < 0" do result = fixnum_min >> -1 result.should be_an_instance_of(Integer) result.should == fixnum_min * 2 @@ -153,17 +153,17 @@ describe "Integer#>> (with n >> m)" do (@bignum >> 68).should == 0 end - it "returns 0 when m is an Integer" do + it "returns 0 when m is a Bignum" do (@bignum >> bignum_value).should == 0 end - it "returns an Integer == fixnum_max when (fixnum_max * 2) >> 1 and n > 0" do + it "returns a Fixnum == fixnum_max when (fixnum_max * 2) >> 1 and n > 0" do result = (fixnum_max * 2) >> 1 result.should be_an_instance_of(Integer) result.should == fixnum_max end - it "returns an Integer == fixnum_min when (fixnum_min * 2) >> 1 and n < 0" do + it "returns a Fixnum == fixnum_min when (fixnum_min * 2) >> 1 and n < 0" do result = (fixnum_min * 2) >> 1 result.should be_an_instance_of(Integer) result.should == fixnum_min |