aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_complex.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_complex.rb')
-rw-r--r--test/ruby/test_complex.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb
index 39a02044fa..846fcf9a3e 100644
--- a/test/ruby/test_complex.rb
+++ b/test/ruby/test_complex.rb
@@ -126,8 +126,8 @@ class Complex_Test < Test::Unit::TestCase
if @rational && !@keiju
assert_equal(Complex(1,1),Complex('3/3','3/3'))
end
- assert_raise(ArgumentError){Complex(nil)}
- assert_raise(ArgumentError){Complex(Object.new)}
+ assert_raise(TypeError){Complex(nil)}
+ assert_raise(TypeError){Complex(Object.new)}
assert_raise(ArgumentError){Complex()}
assert_raise(ArgumentError){Complex(1,2,3)}