ruby-changes:4153
From: ko1@a...
Date: Fri, 29 Feb 2008 23:36:51 +0900 (JST)
Subject: [ruby-changes:4153] akr - Ruby:r15643 (trunk): add a test.
akr 2008-02-29 23:36:39 +0900 (Fri, 29 Feb 2008) New Revision: 15643 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=15643&r2=15642&diff_format=u Index: test/ruby/test_io_m17n.rb =================================================================== --- test/ruby/test_io_m17n.rb (revision 15642) +++ test/ruby/test_io_m17n.rb (revision 15643) @@ -426,5 +426,14 @@ assert_equal("\u{3042}".encode("euc-jp"), result) } end + + def test_file_foreach + with_tmpdir { + generate_file('tst', 'a' * 8191 + "\xa1\xa1") + assert_nothing_raised { + File.foreach('tst', :encoding=>"euc-jp") {|line| line.inspect } + } + } + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/