diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-29 06:09:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-29 06:09:08 +0000 |
commit | a3ffe9698b8a8dff25d94b3e7e490f0a01684bfe (patch) | |
tree | 6521135a57fcc5508ec052f8725114af7de0b477 /test/ruby | |
parent | e15b3c83b880aa2c2f07378095d1eba0214ca468 (diff) | |
download | ruby-a3ffe9698b8a8dff25d94b3e7e490f0a01684bfe.tar.gz |
* numeric.c (flo_round): fix for negative value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_float.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index 2e879bdd2f..fb37d73831 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -322,6 +322,7 @@ class TestFloat < Test::Unit::TestCase assert_equal(11100.0, 11111.1.round(-2)) assert_equal(10**300, 1.1e300.round(-300)) + assert_equal(-10**300, -1.1e300.round(-300)) end VS = [ |