summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_io_m17n.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 17:31:32 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 17:31:32 +0000
commit2ca89f3917b6b0578e7e02612a6d1dc5e09063df (patch)
treeead577db7a577f7a6b1a86ce776e3c81df23ccb5 /test/ruby/test_io_m17n.rb
parentd056e6cb3e9ce698b8468feb0dcd223fc2120bb1 (diff)
downloadruby-2ca89f3917b6b0578e7e02612a6d1dc5e09063df.tar.gz
ruby-2ca89f3917b6b0578e7e02612a6d1dc5e09063df.tar.xz
ruby-2ca89f3917b6b0578e7e02612a6d1dc5e09063df.zip
add assertions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r--test/ruby/test_io_m17n.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb
index 5318952f1..7e3dc2be9 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"))