From b697018e1b30bd702f79a6b299cc17493efe9676 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 3 Jul 2012 02:10:59 +0000 Subject: Fix tests for previous commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_rubyoptions.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/ruby/test_rubyoptions.rb') diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 93dcf43380..4ef974a677 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -121,9 +121,9 @@ class TestRubyOptions < Test::Unit::TestCase 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 @@ class TestRubyOptions < Test::Unit::TestCase 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 @@ class TestRubyOptions < Test::Unit::TestCase 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]' -- cgit v1.2.3