From 7e237b9813192265ee25bc43406c772ce65ff5ad Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 23 Dec 2007 17:31:32 +0000 Subject: [PATCH] add assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io_m17n.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 5318952f1e..7e3dc2be94 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -161,6 +161,8 @@ EOT eucjp = "\xb3\xa2".force_encoding("EUC-JP") with_tmpdir { open('tmp', "w:EUC-JP") {|f| + assert_equal(Encoding::EUC_JP, f.external_encoding) + assert_equal(nil, f.internal_encoding) f.print utf8 } assert_equal(eucjp, File.read('tmp').force_encoding("EUC-JP"))