summaryrefslogtreecommitdiff
path: root/test/ruby/test_marshal.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-07 05:11:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-07 05:11:10 +0000
commit1d10aa8bfc98a42522716f71aae60cb70498a6e6 (patch)
tree248f0b7c17d48a551f7a69399f241bfca923362f /test/ruby/test_marshal.rb
parent1c2ef610358af33f9ded3086aa2d70aac03dcac5 (diff)
* marshal.c (w_object): reverted r26007. [ruby-dev:39845]
* test/test_delegate.rb (test_marshal): moved from test_marshal.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_marshal.rb')
-rw-r--r--test/ruby/test_marshal.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb
index 71936ec147..69c11d6688 100644
--- a/test/ruby/test_marshal.rb
+++ b/test/ruby/test_marshal.rb
@@ -323,11 +323,10 @@ class TestMarshal < Test::Unit::TestCase
end
end
def test_marshal_dump
- bug1744 = '[ruby-core:24211]'
c = C5.new("bar")
s = Marshal.dump(c)
d = Marshal.load(s)
- assert_equal("foo", d.instance_variable_get(:@foo), bug1744)
- assert_equal("bar", d.instance_variable_get(:@x), bug1744)
+ assert_equal("foo", d.instance_variable_get(:@foo))
+ assert_equal(false, d.instance_variable_defined?(:@x))
end
end