From c69e178f0ce7c13f9fe124b7dea30937d70a2a37 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 16 Oct 2008 15:35:37 +0000 Subject: add an assertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io_m17n.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index eeec26d61e..6d3589580e 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -1545,7 +1545,9 @@ EOT srcbin = src.dup.force_encoding("ascii-8bit") open("t.txt", "rt:utf-8:euc-jp") {|f| f.binmode - assert_str_equal(srcbin, f.read) + result = f.read + assert_str_equal(srcbin, result) + assert_equal(Encoding::ASCII_8BIT, result.encoding) } } end -- cgit v1.2.3