mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@902ab83
This commit is contained in:
parent
bb5f710887
commit
e0c5488ff9
56 changed files with 531 additions and 137 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue