diff --git a/ChangeLog b/ChangeLog index 132d1b36ce..c57503bf16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri May 14 13:30:39 Hirokazu Yamamoto + + * test/ruby/test_float.rb: Add test for util.c revision 1.42. + Fri May 14 12:13:46 Hirokazu Yamamoto * util.c (ruby_strtod): strtod("0", &end); => end should point '\0'. diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index 6fae9bf493..2faf1b0456 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -61,6 +61,8 @@ class TestFloat < Test::Unit::TestCase assert(a.abs < Float::EPSILON) a = Float("-0.0") assert(a.abs < Float::EPSILON) + a = Float("0." + "00" * Float::DIG + "1") + assert(a != 0.0) # add expected behaviour here. end end