ruby-changes:14795
From: akr <ko1@a...>
Date: Sat, 13 Feb 2010 13:30:33 +0900 (JST)
Subject: [ruby-changes:14795] Ruby:r26657 (trunk): add a test.
akr 2010-02-13 13:30:18 +0900 (Sat, 13 Feb 2010) New Revision: 26657 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26657 Log: add a test. Modified files: trunk/test/ruby/test_marshal.rb Index: test/ruby/test_marshal.rb =================================================================== --- test/ruby/test_marshal.rb (revision 26656) +++ test/ruby/test_marshal.rb (revision 26657) @@ -428,4 +428,11 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/