aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/bignum/bit_and_spec.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-14 14:09:56 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-14 14:09:56 +0000
commit2ccdbcddfaf544ea28b88b7248c75b90efc1a734 (patch)
treeb04c8801ead64cdd408f383166b88a693bfb0c10 /spec/rubyspec/core/bignum/bit_and_spec.rb
parent52e015cc16d37c3781c991b4d2260ce0687cf55f (diff)
downloadruby-2ccdbcddfaf544ea28b88b7248c75b90efc1a734.tar.gz
Update to ruby/spec@032022ca
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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