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 aed387029e..eccc86740a 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -723,6 +723,9 @@ class TestFloat < Test::Unit::TestCase
end
def test_round_half_invalid
+ assert_raise_with_message(ArgumentError, /nil/) {
+ 1.0.round(half: nil)
+ }
assert_raise_with_message(ArgumentError, /xxx/) {
1.0.round(half: "\0xxx")
}