mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix tests for previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2a87e2733
commit
b697018e1b
1 changed files with 5 additions and 5 deletions
|
@ -121,9 +121,9 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
assert_in_out_err(%w(-KU), "p '\u3042'") do |r, e|
|
assert_in_out_err(%w(-KU), "p '\u3042'") do |r, e|
|
||||||
assert_equal("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8))
|
assert_equal("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8))
|
||||||
end
|
end
|
||||||
assert_in_out_err(%w(-KE -e) + [""], "", [], [])
|
assert_in_out_err(%w(-KE -e) + [""], "", [], /-Ke/)
|
||||||
assert_in_out_err(%w(-KS -e) + [""], "", [], [])
|
assert_in_out_err(%w(-KS -e) + [""], "", [], /-Ks/)
|
||||||
assert_in_out_err(%w(-KN -e) + [""], "", [], [])
|
assert_in_out_err(%w(-KN -e) + [""], "", [], /-Kn/)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_version
|
def test_version
|
||||||
|
@ -235,7 +235,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
ENV['RUBYOPT'] = '-Eus-ascii -KN'
|
ENV['RUBYOPT'] = '-Eus-ascii -KN'
|
||||||
assert_in_out_err(%w(-Eutf-8 -KU), "p '\u3042'") do |r, e|
|
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("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8))
|
||||||
assert_equal([], e)
|
assert_match(/-Ku/, e.join)
|
||||||
end
|
end
|
||||||
|
|
||||||
ensure
|
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_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("\"\u3042\"", r.join.force_encoding(Encoding::UTF_8))
|
||||||
assert_equal([], e)
|
assert_match(/-Ku/, e.join)
|
||||||
end
|
end
|
||||||
|
|
||||||
bug4118 = '[ruby-dev:42680]'
|
bug4118 = '[ruby-dev:42680]'
|
||||||
|
|
Loading…
Reference in a new issue