mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@7a16e01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8e389a0f3
commit
da7976235f
75 changed files with 940 additions and 258 deletions
|
@ -11,8 +11,10 @@ describe "Integer#-@" do
|
|||
end
|
||||
|
||||
it "negates self at Fixnum/Bignum boundaries" do
|
||||
fixnum_max.send(:-@).should == (0 - fixnum_max)
|
||||
fixnum_min.send(:-@).should == (0 - fixnum_min)
|
||||
(-fixnum_max).should == (0 - fixnum_max)
|
||||
(-fixnum_max).should < 0
|
||||
(-fixnum_min).should == (0 - fixnum_min)
|
||||
(-fixnum_min).should > 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue