diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-19 12:53:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-19 12:53:36 +0000 |
commit | 665cc5bcf1f8819f6aa7a1f610885abe3ab55c77 (patch) | |
tree | 5b579d7d1cd3d7cf24191638871e0df8f52f6ff2 /test/ruby/test_fixnum.rb | |
parent | 49484c84bdf54064ca4d733444ac42140fbc179f (diff) | |
download | ruby-665cc5bcf1f8819f6aa7a1f610885abe3ab55c77.tar.gz |
fix r54193
* numeric.c (fix_cmp): invert the result as the comarison is
inverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_fixnum.rb')
-rw-r--r-- | test/ruby/test_fixnum.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_fixnum.rb b/test/ruby/test_fixnum.rb index 024f905a43..3a1c2fa8bc 100644 --- a/test/ruby/test_fixnum.rb +++ b/test/ruby/test_fixnum.rb @@ -214,6 +214,7 @@ class TestFixnum < Test::Unit::TestCase assert_equal(0, 1 <=> 1) assert_equal(-1, 1 <=> 4294967296) + assert_equal(-1, 1 <=> 1 << 100) assert_equal(0, 1 <=> 1.0) assert_nil(1 <=> nil) |