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 | 7aadb29c81c4aad02b6e83a3408332909a81bece (patch) | |
tree | dad08ef8764383d7410a15a72c5c842e2f192f16 /test | |
parent | 1bb3a74d19bb99c6357c54f8849ca66830beb943 (diff) | |
download | ruby-7aadb29c81c4aad02b6e83a3408332909a81bece.tar.gz ruby-7aadb29c81c4aad02b6e83a3408332909a81bece.tar.xz ruby-7aadb29c81c4aad02b6e83a3408332909a81bece.zip |
add tests.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 087f8c448..237698b86 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 |