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

ruby-changes:15900

From: yugui <ko1@a...>
Date: Sun, 16 May 2010 21:17:22 +0900 (JST)
Subject: [ruby-changes:15900] Ruby:r27839 (ruby_1_9_2): merges r27787 from trunk into ruby_1_9_2.

yugui	2010-05-16 21:15:53 +0900 (Sun, 16 May 2010)

  New Revision: 27839

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

  Log:
    merges r27787 from trunk into ruby_1_9_2.
    --
    add a test.

  Modified files:
    branches/ruby_1_9_2/test/ruby/test_io_m17n.rb

Index: ruby_1_9_2/test/ruby/test_io_m17n.rb
===================================================================
--- ruby_1_9_2/test/ruby/test_io_m17n.rb	(revision 27838)
+++ ruby_1_9_2/test/ruby/test_io_m17n.rb	(revision 27839)
@@ -1792,5 +1792,17 @@
     end
   end
 
+  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))
+    end
+  end
+
 end
 

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

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