From 7aadb29c81c4aad02b6e83a3408332909a81bece Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 12 Sep 2008 18:00:08 +0000 Subject: add tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io_m17n.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') 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 -- cgit