[前][次][番号順一覧][スレッド一覧]

ruby-changes:15856

From: nobu <ko1@a...>
Date: Fri, 14 May 2010 07:09:21 +0900 (JST)
Subject: [ruby-changes:15856] Ruby:r27791 (trunk): * test/ruby/test_io_m17n.rb (test_textmode_paragraph_binaryread):

nobu	2010-05-14 07:09:08 +0900 (Fri, 14 May 2010)

  New Revision: 27791

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27791

  Log:
    * test/ruby/test_io_m17n.rb (test_textmode_paragraph_binaryread):
      use opened pipes by with_pipe.

  Modified files:
    trunk/test/ruby/test_io_m17n.rb

Index: test/ruby/test_io_m17n.rb
===================================================================
--- test/ruby/test_io_m17n.rb	(revision 27790)
+++ test/ruby/test_io_m17n.rb	(revision 27791)
@@ -1794,10 +1794,8 @@
 
   def test_textmode_paragraph_binaryread
     with_pipe("US-ASCII:UTF-8", :universal_newline => true) do |r, w|
-      r, w = IO.pipe
       w << "a\n\n\ncdefgh".gsub(/\n/, "\r\n")
       w.close
-      r.set_encoding("US-ASCII:UTF-8", :universal_newline => true)
       assert_equal("a\n\n", r.gets(""))
       assert_equal("c", r.getc)
       assert_equal("defgh", r.readpartial(10))

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]