From 292c39098da3d6c9036eabcb9f8a5f7b07c86ab0 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 3 Aug 2010 11:30:19 +0000 Subject: * bignum.c (rb_big_eq): never equal to infinity. [ruby-core:31603] * rational.c (nurat_div): hack for integral float divisor. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_bignum.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_bignum.rb') diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index 13b5b9dbe0..264c68bcf7 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -193,6 +193,7 @@ class TestBignum < Test::Unit::TestCase assert(T31P != 1) assert(T31P == 2147483647.0) assert(T31P != "foo") + assert(2**77889 != (1.0/0.0), '[ruby-core:31603]') end def test_eql -- cgit v1.2.3