From dca0de41913ee3de07da76aca9d096b07e685870 Mon Sep 17 00:00:00 2001 From: ocean Date: Fri, 14 May 2004 04:34:07 +0000 Subject: * test/ruby/test_float.rb: Add test for util.c revision 1.42. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_float.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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 -- cgit v1.2.3