diff --git a/ChangeLog b/ChangeLog index 2deff68ba5..a1526f246f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat May 15 17:52:24 Hirokazu Yamamoto + + * test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1 + Sat May 15 14:20:13 2004 WATANABE Hirofumi * ext/syck/depend: add ruby's headers. 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