1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2022-01-28 14:42:38 +01:00
parent bb5f710887
commit e0c5488ff9
56 changed files with 531 additions and 137 deletions

View file

@ -12,9 +12,9 @@ describe "Integer#~" do
context "bignum" do
it "returns self with each bit flipped" do
(~bignum_value(48)).should == -9223372036854775857
(~(-bignum_value(21))).should == 9223372036854775828
(~bignum_value(1)).should == -9223372036854775810
(~bignum_value(48)).should == -18446744073709551665
(~(-bignum_value(21))).should == 18446744073709551636
(~bignum_value(1)).should == -18446744073709551618
end
end
end