diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-03 02:10:59 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-03 02:10:59 +0000 |
commit | b697018e1b30bd702f79a6b299cc17493efe9676 (patch) | |
tree | ab40bb0a3308a2ea44cf22327de7958d96867d86 /test | |
parent | c2a87e2733e19cc71435f36766835cb8dba56ceb (diff) | |
download | ruby-b697018e1b30bd702f79a6b299cc17493efe9676.tar.gz |
Fix tests for previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 10 |
1 files changed, 5 insertions, 5 deletions
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]' |