mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
bc8fe41cca
commit
dca0de4191
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri May 14 13:30:39 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* test/ruby/test_float.rb: Add test for util.c revision 1.42.
|
||||
|
||||
Fri May 14 12:13:46 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* util.c (ruby_strtod): strtod("0", &end); => end should point '\0'.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue