1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2004-05-15 08:54:23 +00:00
parent 18e3d54e92
commit a694dea2d8
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Sat May 15 17:52:24 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1
Sat May 15 14:20:13 2004 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/syck/depend: add ruby's headers.

View file

@ -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