1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-02-13 04:30:18 +00:00
parent d6fb854ecb
commit 2ce744032b

View file

@ -428,4 +428,11 @@ class TestMarshal < Test::Unit::TestCase
o2 = Marshal.load(m)
assert_equal(STDIN, o.stdin)
end
def test_marshal_encoding
o = ["foo".force_encoding("EUC-JP")] + [ "bar" ] * 2
m = Marshal.dump(o)
o2 = Marshal.load(m)
assert_equal(o, o2, "[ruby-dev:40388]")
end
end