ruby-changes:24224
From: naruse <ko1@a...>
Date: Tue, 3 Jul 2012 11:11:11 +0900 (JST)
Subject: [ruby-changes:24224] naruse:r36275 (trunk): Fix tests for previous commit.
naruse 2012-07-03 11:10:59 +0900 (Tue, 03 Jul 2012) New Revision: 36275 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36275 Log: Fix tests for previous commit. Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 36274) +++ test/ruby/test_rubyoptions.rb (revision 36275) @@ -121,9 +121,9 @@ assert_in_out_err(%w(-KU), "p '\u3042'") do |r, e| assert_equal("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8)) end - assert_in_out_err(%w(-KE -e) + [""], "", [], []) - assert_in_out_err(%w(-KS -e) + [""], "", [], []) - assert_in_out_err(%w(-KN -e) + [""], "", [], []) + assert_in_out_err(%w(-KE -e) + [""], "", [], /-Ke/) + assert_in_out_err(%w(-KS -e) + [""], "", [], /-Ks/) + assert_in_out_err(%w(-KN -e) + [""], "", [], /-Kn/) end def test_version @@ -235,7 +235,7 @@ ENV['RUBYOPT'] = '-Eus-ascii -KN' assert_in_out_err(%w(-Eutf-8 -KU), "p '\u3042'") do |r, e| assert_equal("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8)) - assert_equal([], e) + assert_match(/-Ku/, e.join) end ensure @@ -289,7 +289,7 @@ assert_in_out_err([], "#!ruby -KU -Eutf-8\r\np \"\u3042\"\r\n") do |r, e| assert_equal("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8)) - assert_equal([], e) + assert_match(/-Ku/, e.join) end bug4118 = '[ruby-dev:42680]' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/