diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-18 11:36:42 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-18 11:36:42 +0000 |
commit | 443814c1f2370770dc35b2f60a9db2f26d0050ce (patch) | |
tree | 5e7a91a7ca4701e4d61688b910b7f1fa29e78b8f /test/ruby/test_rubyoptions.rb | |
parent | 08fb9a83283b4c6d1f4b4e0671361c7fb464b2ad (diff) | |
download | ruby-443814c1f2370770dc35b2f60a9db2f26d0050ce.tar.gz ruby-443814c1f2370770dc35b2f60a9db2f26d0050ce.tar.xz ruby-443814c1f2370770dc35b2f60a9db2f26d0050ce.zip |
* test/ruby/test_rubyoptions.rb: use character class instead of alternation
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 810ed74a6..49c569aca 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -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 |