1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add an assertion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-10-16 15:35:37 +00:00
parent 0cda4bb3bf
commit c69e178f0c

View file

@ -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