diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-06 19:28:12 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-06 19:28:12 +0000 |
commit | 54476a60248dbba0ee7b69b8df5b4b160e78913f (patch) | |
tree | 3ed4c603d72825d999e0e5ef8d1f626306ecc7d0 /test/bigdecimal | |
parent | 8db2aa121631435b68160d9d7836a77415dcb0ea (diff) | |
download | ruby-54476a60248dbba0ee7b69b8df5b4b160e78913f.tar.gz |
* ext/bigdecimal/bigdecimal.c (VpCtoV): fix to check overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/bigdecimal')
-rw-r--r-- | test/bigdecimal/test_bigdecimal.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index 536ec4874c..b266233b20 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -25,6 +25,7 @@ class TestBigDecimal < Test::Unit::TestCase assert_equal( 1, BigDecimal.new("Infinity").infinite?) assert_equal(-1, BigDecimal.new("-Infinity").infinite?) assert_equal(true, BigDecimal.new("NaN").nan?) + assert_equal( 1, BigDecimal.new("1E11111111111").infinite?) end def _test_mode(type) |