From 2ce744032b38771dd1a6aa87b9118621bea3b3aa Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 13 Feb 2010 04:30:18 +0000 Subject: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_marshal.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 31975b7aea..73be44b264 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -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 -- cgit v1.2.3