Skip to content

Commit 78ca436

Browse files
committed
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent e72cc70 commit 78ca436

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/ruby/test_marshal.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,11 @@ def test_marshal_dump_extra_iv
428428
o2 = Marshal.load(m)
429429
assert_equal(STDIN, o.stdin)
430430
end
431+
432+
def test_marshal_encoding
433+
o = ["foo".force_encoding("EUC-JP")] + [ "bar" ] * 2
434+
m = Marshal.dump(o)
435+
o2 = Marshal.load(m)
436+
assert_equal(o, o2, "[ruby-dev:40388]")
437+
end
431438
end

0 commit comments

Comments
 (0)