summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/bignum/bit_and_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/bignum/bit_and_spec.rb')
-rw-r--r--spec/rubyspec/core/bignum/bit_and_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/rubyspec/core/bignum/bit_and_spec.rb b/spec/rubyspec/core/bignum/bit_and_spec.rb
index 6eca0e56f0..4bc5c11e1b 100644
--- a/spec/rubyspec/core/bignum/bit_and_spec.rb
+++ b/spec/rubyspec/core/bignum/bit_and_spec.rb
@@ -16,8 +16,8 @@ describe "Bignum#&" do
end
it "returns self bitwise AND other when one operand is negative" do
- ((2*bignum_value) & -1).should == 18446744073709551616
- ((4*bignum_value) & -1).should == 36893488147419103232
+ ((2*bignum_value) & -1).should == (2*bignum_value)
+ ((4*bignum_value) & -1).should == (4*bignum_value)
(@bignum & -0xffffffffffffff5).should == 9223372036854775809
(@bignum & -@bignum).should == 1
(@bignum & -0x8000000000000000).should == 9223372036854775808