diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-24 06:38:57 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-24 06:38:57 +0000 |
commit | 0da6cb6b78d590ff36d50ad856fb06f615cab6a0 (patch) | |
tree | 468936cf1c4564308a2e6b61dac156d51cc23083 /test/ruby/test_io_m17n.rb | |
parent | 52624a0e04e29415a2f837aea1e199a04c419f95 (diff) | |
download | ruby-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.rb | 10 |
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 |