ruby-changes:3750
From: ko1@a...
Date: Sat, 26 Jan 2008 00:23:01 +0900 (JST)
Subject: [ruby-changes:3750] akr - Ruby:r15239 (trunk): add a test.
akr 2008-01-26 00:22:52 +0900 (Sat, 26 Jan 2008) New Revision: 15239 Modified files: trunk/test/ruby/test_io_m17n.rb Log: add a test. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_io_m17n.rb?r1=15239&r2=15238&diff_format=u Index: test/ruby/test_io_m17n.rb =================================================================== --- test/ruby/test_io_m17n.rb (revision 15238) +++ test/ruby/test_io_m17n.rb (revision 15239) @@ -417,5 +417,14 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/