diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-13 04:30:18 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-13 04:30:18 +0000 |
commit | 2ce744032b38771dd1a6aa87b9118621bea3b3aa (patch) | |
tree | 6281b2c03142c5b20ee702deaf5d77a8aefc637d | |
parent | d6fb854ecbf48111a746009f559d642446b8d1c1 (diff) | |
download | ruby-2ce744032b38771dd1a6aa87b9118621bea3b3aa.tar.gz |
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 |