diff options
Diffstat (limited to 'test/ruby/test_complex.rb')
-rw-r--r-- | test/ruby/test_complex.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 60a46d737d..2a72f3bcb9 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -868,6 +868,12 @@ class Complex_Test < Test::Unit::TestCase end + def test_Complex_with_invalid_exception + assert_raise(ArgumentError) { + Complex("0", exception: 1) + } + end + def test_Complex_without_exception assert_nothing_raised(ArgumentError){ assert_equal(nil, Complex('5x', exception: false)) |