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

add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-27 13:39:25 +00:00
parent 4c88439a94
commit ad3c6c712b

View file

@ -826,6 +826,14 @@ EOT
}
end
def test_read_stateful
with_pipe("euc-jp:iso-2022-jp") {|r, w|
w << "\xA4\xA2"
w.close
assert_equal("\e$B$\"\e(B".force_encoding("iso-2022-jp"), r.read)
}
end
def test_stdin_external_encoding_with_reopen
with_tmpdir {
open("tst", "w+") {|f|