diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-14 04:34:07 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-14 04:34:07 +0000 |
| commit | af578a7700ae2e3bf2abec67248807581e882b21 (patch) | |
| tree | 360da6fa434a89161404070e20e2bf115113c83a /test/ruby/test_float.rb | |
| parent | 05ff594be8902c2dbc17c75e09c8760e39c136a0 (diff) | |
| download | ruby-af578a7700ae2e3bf2abec67248807581e882b21.tar.gz ruby-af578a7700ae2e3bf2abec67248807581e882b21.tar.xz ruby-af578a7700ae2e3bf2abec67248807581e882b21.zip | |
* test/ruby/test_float.rb: Add test for util.c revision 1.42.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_float.rb')
| -rw-r--r-- | test/ruby/test_float.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index 6fae9bf49..2faf1b045 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 |
