diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-01 09:46:34 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-01 09:46:34 +0000 |
commit | 6765d52c3871cb0c7ccf7b41677c7610d761e287 (patch) | |
tree | 22e27c5935553d196a51087006cfd3bf6dff6317 /test | |
parent | f62d8ce901501d53dcd98dc04b4a06303fdb9717 (diff) |
merges r28815 from trunk into ruby_1_9_2.
--
* bignum.c (big_op): comparison of bignum and infinity has returned 1
or -1, but it must return boolean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_bignum.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index 5cff48c4d7..13b5b9dbe0 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -185,6 +185,8 @@ class TestBignum < Test::Unit::TestCase assert(T31P < T64P) assert(T64P > T31P) assert_raise(ArgumentError) { T31P < "foo" } + assert(T64 < (1.0/0.0)) + assert(!(T64 > (1.0/0.0))) end def test_eq |