diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-12 18:00:08 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-12 18:00:08 +0000 |
commit | 207ad0a285c1adabef466a5012c94ada47c53ab1 (patch) | |
tree | dad08ef8764383d7410a15a72c5c842e2f192f16 /test/ruby | |
parent | 76c02f05a27a5dfaac3e7b8fe4865212c57cfd13 (diff) | |
download | ruby-207ad0a285c1adabef466a5012c94ada47c53ab1.tar.gz |
add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_io_m17n.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 087f8c4483..237698b868 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -823,6 +823,18 @@ EOT f.set_encoding("iso-2022-jp") } } + assert_nothing_raised { + open("/dev/null", "r") {|f| + f.binmode + f.set_encoding("iso-2022-jp") + } + } + assert_nothing_raised { + open("/dev/null", "rt") {|f| + f.binmode + f.set_encoding("iso-2022-jp") + } + } end def test_write_conversion_fixenc |