diff options
Diffstat (limited to 'test/ruby/test_marshal.rb')
-rw-r--r-- | test/ruby/test_marshal.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 |