summaryrefslogtreecommitdiff
path: root/test/ruby/test_float.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_float.rb')
-rw-r--r--test/ruby/test_float.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index ff4cf3fba1..c5bc95f5c7 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -415,7 +415,7 @@ class TestFloat < Test::Unit::TestCase
assert_raise(TypeError) { Float(nil) }
o = Object.new
def o.to_f; inf = 1.0/0.0; inf/inf; end
- assert_raise(ArgumentError) { Float(o) }
+ assert(Float(o).nan?)
end
def test_num2dbl