aboutsummaryrefslogtreecommitdiffstats
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.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index c55b051832..f011c2b062 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -561,6 +561,9 @@ class TestFloat < Test::Unit::TestCase
assert_raise(TypeError) do
1.0.step(2.0, "0.5") {}
end
+ assert_raise(TypeError) do
+ 1.0.step(2.0, nil) {}
+ end
end
def test_sleep_with_Float