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

ruby-changes:49197

From: nobu <ko1@a...>
Date: Mon, 18 Dec 2017 13:12:15 +0900 (JST)
Subject: [ruby-changes:49197] nobu:r61315 (trunk): test/ruby/test_io.rb: test for r61314

nobu	2017-12-18 13:12:06 +0900 (Mon, 18 Dec 2017)

  New Revision: 61315

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61315

  Log:
    test/ruby/test_io.rb: test for r61314
    
    From: Nobuyoshi Nakada <nobu@r...>

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 61314)
+++ test/ruby/test_io.rb	(revision 61315)
@@ -2357,6 +2357,10 @@ End https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L2357
     IO.foreach("|" + EnvUtil.rubybin + " -e 'puts :foo; puts :bar; puts :baz'") {|x| a << x }
     assert_equal(["foo\n", "bar\n", "baz\n"], a)
 
+    a = []
+    IO.foreach("|" + EnvUtil.rubybin + " -e 'puts :zot'", :open_args => ["r"]) {|x| a << x }
+    assert_equal(["zot\n"], a)
+
     make_tempfile {|t|
       a = []
       IO.foreach(t.path) {|x| a << x }

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

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