ruby-changes:47193
From: nobu <ko1@a...>
Date: Mon, 10 Jul 2017 16:37:26 +0900 (JST)
Subject: [ruby-changes:47193] nobu:r59308 (trunk): test_rubyoptions.rb: assert -00
nobu 2017-07-10 16:37:18 +0900 (Mon, 10 Jul 2017) New Revision: 59308 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59308 Log: test_rubyoptions.rb: assert -00 Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 59307) +++ test/ruby/test_rubyoptions.rb (revision 59308) @@ -185,6 +185,8 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L185 assert_in_out_err(%w(-0141 -e) + ["print gets"], "foo\nbar\0baz", %w(foo ba), []) assert_in_out_err(%w(-0e) + ["print gets"], "foo\nbar\0baz", %W(foo bar\0), []) + + assert_in_out_err(%w(-00 -e) + ["p gets, gets"], "foo\nbar\n\nbaz\nzot\n\n\n", %w("foo\nbar\n\n" "baz\nzot\n\n"), []) end def test_autosplit -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/