diff options
Diffstat (limited to 'spec/ruby/core/integer/left_shift_spec.rb')
-rw-r--r-- | spec/ruby/core/integer/left_shift_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/core/integer/left_shift_spec.rb b/spec/ruby/core/integer/left_shift_spec.rb index d2ffe4bbeb..4efcbef334 100644 --- a/spec/ruby/core/integer/left_shift_spec.rb +++ b/spec/ruby/core/integer/left_shift_spec.rb @@ -52,17 +52,17 @@ describe "Integer#<< (with n << m)" do (-7 << -64).should == -1 end - it "returns 0 when m < 0 and m is an Integer" do + it "returns 0 when m < 0 and m is a Bignum" 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 @@ -127,17 +127,17 @@ describe "Integer#<< (with n << m)" do (@bignum << -68).should == 0 end - it "returns 0 when m < 0 and m is an Integer" do + it "returns 0 when m < 0 and 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 |