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