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@15239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-01-25 15:22:52 +00:00
parent 3a783ba707
commit 9a2d2fae46

View file

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