aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-03 05:05:29 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-03 05:05:29 +0000
commitbdc55aa0c690e343be3b31a62c5f44a41f22e330 (patch)
tree168b1f7f88f755f92180e348117af34a11e5cf52 /test
parent89ae71d72157aa8800443741ff328199d7ba59e5 (diff)
downloadruby-bdc55aa0c690e343be3b31a62c5f44a41f22e330.tar.gz
* complex.c: wrote Complex#_dump and Complex::load. But now
disabled (due to compatibility) [experimental]. * rational.c: wrote Rational#_dump and Rational::load. ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_complex.rb2
-rw-r--r--test/ruby/test_rational.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb
index aa6d6a77fe..2ee97a0ad8 100644
--- a/test/ruby/test_complex.rb
+++ b/test/ruby/test_complex.rb
@@ -657,6 +657,7 @@ class Complex_Test < Test::Unit::TestCase
assert_instance_of(Complex, c2)
end
+=begin
bug3656 = '[ruby-core:31622]'
assert_raise(TypeError, bug3656) {
Complex(1,2).marshal_load(0)
@@ -666,6 +667,7 @@ class Complex_Test < Test::Unit::TestCase
c.freeze
assert(c.frozen?)
assert_raise(RuntimeError){c.marshal_load([2,3])}
+=end
end
def test_parse
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb
index e1aafb5a0a..497c476b1b 100644
--- a/test/ruby/test_rational.rb
+++ b/test/ruby/test_rational.rb
@@ -823,6 +823,7 @@ class Rational_Test < Test::Unit::TestCase
assert_equal(9, c2.instance_variable_get(:@ivar))
assert_instance_of(Rational, c2)
+=begin
assert_raise(ZeroDivisionError){
Marshal.load("\x04\bU:\rRational[\ai\x06i\x05")
}
@@ -836,6 +837,7 @@ class Rational_Test < Test::Unit::TestCase
c.freeze
assert(c.frozen?)
assert_raise(RuntimeError){c.marshal_load([2,3])}
+=end
end
def test_parse