summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-22 04:00:39 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-22 04:00:39 +0000
commit46cd2f463c5668f53436076e67db59fdc33ff384 (patch)
tree1970a9c594d8a971b68d5bf8add35971ef91944b /test
parent7db42e86b25f5ee0a8d3986039e6ed4759308014 (diff)
merge revision(s) 43775:
* util.c (ruby_strtod): ignore too long fraction part, which does not affect the result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_float.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index f011c2b062..e9b18f2e57 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -613,4 +613,10 @@ class TestFloat < Test::Unit::TestCase
# always not flonum
assert_raise(TypeError) { a = Float::INFINITY; def a.foo; end }
end
+
+ def test_long_string
+ assert_separately([], <<-'end;')
+ assert_in_epsilon(10.0, ("1."+"1"*300000).to_f*9)
+ end;
+ end
end