diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-15 08:54:23 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-15 08:54:23 +0000 |
commit | a3c149c75db31aefc0dc4b7270b5cae9d876e29b (patch) | |
tree | aa26a9a3a804f6e9ae5bc617ae03fcdbe27e4e8e /test/ruby/test_float.rb | |
parent | 820face2af0939d3716bdc80b1b6182389a09d0e (diff) | |
download | ruby-a3c149c75db31aefc0dc4b7270b5cae9d876e29b.tar.gz ruby-a3c149c75db31aefc0dc4b7270b5cae9d876e29b.tar.xz ruby-a3c149c75db31aefc0dc4b7270b5cae9d876e29b.zip |
* test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_float.rb')
-rw-r--r-- | test/ruby/test_float.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index 2faf1b045..92c206294 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 |