diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-25 15:22:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-25 15:22:52 +0000 |
commit | 9a2d2fae46223a00cf3bab059400759bdf2fafbe (patch) | |
tree | 4ce8116991e3d89bbfe6496901b4539adb85d680 /test | |
parent | 3a783ba707eadf0ddad102e348e43968d434486c (diff) | |
download | ruby-9a2d2fae46223a00cf3bab059400759bdf2fafbe.tar.gz |
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io_m17n.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 2e52c8bb3e..dc10d1d29c 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -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 |