From a3c149c75db31aefc0dc4b7270b5cae9d876e29b Mon Sep 17 00:00:00 2001 From: ocean Date: Sat, 15 May 2004 08:54:23 +0000 Subject: * 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 --- test/ruby/test_float.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby') 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 -- cgit