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:
parent
4c88439a94
commit
ad3c6c712b
1 changed files with 8 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue