summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_io_m17n.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-24 06:38:57 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-24 06:38:57 +0000
commit0da6cb6b78d590ff36d50ad856fb06f615cab6a0 (patch)
tree468936cf1c4564308a2e6b61dac156d51cc23083 /test/ruby/test_io_m17n.rb
parent52624a0e04e29415a2f837aea1e199a04c419f95 (diff)
downloadruby-0da6cb6b78d590ff36d50ad856fb06f615cab6a0.tar.gz
ruby-0da6cb6b78d590ff36d50ad856fb06f615cab6a0.tar.xz
ruby-0da6cb6b78d590ff36d50ad856fb06f615cab6a0.zip
add a test for [ruby-dev:33264].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r--test/ruby/test_io_m17n.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb
index 8646e6c6a..eb4fd1c46 100644
--- a/test/ruby/test_io_m17n.rb
+++ b/test/ruby/test_io_m17n.rb
@@ -407,5 +407,15 @@ EOT
end
+ def test_marshal
+ with_pipe("EUC-JP") {|r, w|
+ data = 56225
+ Marshal.dump(data, w)
+ w.close
+ result = nil
+ assert_not_raised("[ruby-dev:33264]") { result = Marshal.load(r) }
+ assert_equal(data, result)
+ }
+ end
end