diff options
Diffstat (limited to 'test/ruby/test_complex.rb')
-rw-r--r-- | test/ruby/test_complex.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index f6d65de6de..b2894610f7 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -633,6 +633,11 @@ class Complex_Test < Test::Unit::TestCase assert_equal(c, c2) assert_instance_of(Complex, c2) end + + bug3656 = '[ruby-core:31622]' + assert_raise(TypeError, bug3656) { + Complex(1,2).marshal_load(0) + } end def test_parse |