summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-15 08:54:23 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-15 08:54:23 +0000
commita694dea2d8d4778bdfdfb6018647c6b022e0d9e5 (patch)
treeaa26a9a3a804f6e9ae5bc617ae03fcdbe27e4e8e /test
parent18e3d54e929c29b0282da6ec09cc04313ab444e5 (diff)
* test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_float.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index 2faf1b0456..92c2062948 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -63,6 +63,10 @@ class TestFloat < Test::Unit::TestCase
assert(a.abs < Float::EPSILON)
a = Float("0." + "00" * Float::DIG + "1")
assert(a != 0.0)
+ a = Float("+0." + "00" * Float::DIG + "1")
+ assert(a != 0.0)
+ a = Float("-0." + "00" * Float::DIG + "1")
+ assert(a != 0.0)
# add expected behaviour here.
end
end