aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_float.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-29 05:33:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-29 05:33:43 +0000
commite1cc51407329230aab32088ed67f78b0c5c23e8b (patch)
tree8bafa7bb2284a03c51b61884e930268507ef0e07 /test/ruby/test_float.rb
parent4c205de3e6fa7da642820fe069734e6321397423 (diff)
downloadruby-e1cc51407329230aab32088ed67f78b0c5c23e8b.tar.gz
* test/ruby: fixed nonsense assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_float.rb')
-rw-r--r--test/ruby/test_float.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index 3e5b1177c0..ebb4fb89ae 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -245,8 +245,8 @@ class TestFloat < Test::Unit::TestCase
def test_infinite_p
inf = Float::INFINITY
- assert(1, inf.infinite?)
- assert(1, (-inf).infinite?)
+ assert_equal(1, inf.infinite?)
+ assert_equal(-1, (-inf).infinite?)
assert_nil(1.0.infinite?)
end