From 921b2d1cfb67bae2941642015fbe35f7e7b81698 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Apr 2010 05:46:04 +0000 Subject: * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert): use more descriptive assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_float.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_float.rb') diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index ebb4fb89ae..a0d72be03d 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -419,10 +419,10 @@ class TestFloat < Test::Unit::TestCase def test_Float assert_in_delta(0.125, Float("0.1_2_5"), 0.00001) assert_in_delta(0.125, "0.1_2_5__".to_f, 0.00001) - assert(Float(([1] * 10000).join).infinite?) + assert_equal(1, Float(([1] * 10000).join).infinite?) assert(!Float(([1] * 10000).join("_")).infinite?) # is it really OK? assert_raise(ArgumentError) { Float("1.0\x001") } - assert(Float("1e10_00").infinite?) + assert_equal(1, Float("1e10_00").infinite?) assert_raise(TypeError) { Float(nil) } o = Object.new def o.to_f; inf = Float::INFINITY; inf/inf; end -- cgit v1.2.3