summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-31 00:13:13 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-31 00:13:13 +0000
commitd71702168ca57315179441bce49402295b28240c (patch)
tree941728365944fd8c2de3707253d4e598c576ce54 /test
parentd500908417d88291a649a46de2766c3aa8dcf82d (diff)
merges r31778 from trunk into ruby_1_9_2.
-- * numeric.c (flo_round): fix for negative value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_float.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index ab5f9bdc07..77645a91fc 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -297,6 +297,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 = [