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:
parent
0cda4bb3bf
commit
c69e178f0c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue