mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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/trunk@28815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b6f174afdb
commit
6ad3f61663
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue