[前][次][番号順一覧][スレッド一覧]

ruby-changes:5908

From: kazu <ko1@a...>
Date: Wed, 18 Jun 2008 20:38:46 +0900 (JST)
Subject: [ruby-changes:5908] Ruby:r17416 (trunk): * test/ruby/test_rubyoptions.rb: use character class instead of alternation

kazu	2008-06-18 20:36:42 +0900 (Wed, 18 Jun 2008)

  New Revision: 17416

  Modified files:
    trunk/test/ruby/test_rubyoptions.rb

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


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_rubyoptions.rb?r1=17416&r2=17415&diff_format=u

Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 17415)
+++ test/ruby/test_rubyoptions.rb	(revision 17416)
@@ -413,14 +413,14 @@
     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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]