summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_complex.rb4
-rw-r--r--test/ruby/test_rational.rb4
2 files changed, 0 insertions, 8 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb
index a195e0d4fb..ded316841a 100644
--- a/test/ruby/test_complex.rb
+++ b/test/ruby/test_complex.rb
@@ -75,7 +75,6 @@ class Complex_Test < Test::Unit::TestCase
def test_freeze
c = Complex(1)
- c.freeze
assert_predicate(c, :frozen?)
assert_instance_of(String, c.to_s)
end
@@ -534,12 +533,10 @@ class Complex_Test < Test::Unit::TestCase
def test_marshal
c = Complex(1,2)
- c.instance_eval{@ivar = 9}
s = Marshal.dump(c)
c2 = Marshal.load(s)
assert_equal(c, c2)
- assert_equal(9, c2.instance_variable_get(:@ivar))
assert_instance_of(Complex, c2)
c = Complex(Rational(1,2),Rational(2,3))
@@ -551,7 +548,6 @@ class Complex_Test < Test::Unit::TestCase
bug3656 = '[ruby-core:31622]'
c = Complex(1,2)
- c.freeze
assert_predicate(c, :frozen?)
result = c.marshal_load([2,3]) rescue :fail
assert_equal(:fail, result, bug3656)
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb
index be90bf85bf..d94ded3fe3 100644
--- a/test/ruby/test_rational.rb
+++ b/test/ruby/test_rational.rb
@@ -59,7 +59,6 @@ class Rational_Test < Test::Unit::TestCase
def test_freeze
c = Rational(1)
- c.freeze
assert_predicate(c, :frozen?)
assert_instance_of(String, c.to_s)
end
@@ -639,12 +638,10 @@ class Rational_Test < Test::Unit::TestCase
def test_marshal
c = Rational(1,2)
- c.instance_eval{@ivar = 9}
s = Marshal.dump(c)
c2 = Marshal.load(s)
assert_equal(c, c2)
- assert_equal(9, c2.instance_variable_get(:@ivar))
assert_instance_of(Rational, c2)
assert_raise(TypeError){
@@ -657,7 +654,6 @@ class Rational_Test < Test::Unit::TestCase
bug3656 = '[ruby-core:31622]'
c = Rational(1,2)
- c.freeze
assert_predicate(c, :frozen?)
result = c.marshal_load([2,3]) rescue :fail
assert_equal(:fail, result, bug3656)