summaryrefslogtreecommitdiff
path: root/test/ruby/test_marshal.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-13 04:30:18 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-13 04:30:18 +0000
commit2ce744032b38771dd1a6aa87b9118621bea3b3aa (patch)
tree6281b2c03142c5b20ee702deaf5d77a8aefc637d /test/ruby/test_marshal.rb
parentd6fb854ecbf48111a746009f559d642446b8d1c1 (diff)
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_marshal.rb')
-rw-r--r--test/ruby/test_marshal.rb7
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