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@15239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3a783ba707
commit
9a2d2fae46
1 changed files with 9 additions and 0 deletions
|
@ -417,5 +417,14 @@ EOT
|
|||
assert_equal(data, result)
|
||||
}
|
||||
end
|
||||
|
||||
def test_gets_nil
|
||||
with_pipe("UTF-8:EUC-JP") {|r, w|
|
||||
w << "\u{3042}"
|
||||
w.close
|
||||
result = r.gets(nil)
|
||||
assert_equal("\u{3042}".encode("euc-jp"), result)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue