1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_rubyoptions.rb: use character class instead of alternation

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2008-06-18 11:36:42 +00:00
parent 6f7e284257
commit 19e22ae8f4

View file

@ -413,14 +413,14 @@ class TestRubyOptions < Test::Unit::TestCase
ruby do |w, r, e|
w.print "#! /test_r_u_b_y_test_r_u_b_y_options_foobarbazqux\r\np 1\r\n"
w.close
assert_match(/Can't exec (?:\/|\\)test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/, e.read) #'
assert_match(/Can't exec [\/\\]test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/, e.read) #'
assert_equal('', r.read.chomp)
end
ruby do |w, r, e|
w.print "#! /test_r_u_b_y_test_r_u_b_y_options_foobarbazqux -foo -bar\r\np 1\r\n"
w.close
assert_match(/Can't exec (?:\/|\\)test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/, e.read) #'
assert_match(/Can't exec [\/\\]test_r_u_b_y_test_r_u_b_y_options_foobarbazqux \(fatal\)/, e.read) #'
assert_equal('', r.read.chomp)
end