mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_float.rb (TestFloat::test_strtod): update test to
conform strtod change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a15fda8267
commit
3aae5bef4d
2 changed files with 5 additions and 5 deletions
|
@ -73,11 +73,6 @@ class TestFloat < Test::Unit::TestCase
|
|||
assert(a.abs < Float::EPSILON)
|
||||
a = Float("-.0")
|
||||
assert(a.abs < Float::EPSILON)
|
||||
a = Float("0.")
|
||||
assert(a.abs < Float::EPSILON)
|
||||
a = Float("+0.")
|
||||
assert(a.abs < Float::EPSILON)
|
||||
a = Float("-0.")
|
||||
assert(a.abs < Float::EPSILON)
|
||||
assert_raise(ArgumentError){Float(".")}
|
||||
assert_raise(ArgumentError){Float("+")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue