ruby-changes:42794
From: usa <ko1@a...>
Date: Sun, 1 May 2016 22:58:07 +0900 (JST)
Subject: [ruby-changes:42794] usa:r54868 (trunk): * test/lib/test/unit.rb (Options#non_options): fixed wrong regexp.
usa 2016-05-01 23:54:44 +0900 (Sun, 01 May 2016) New Revision: 54868 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54868 Log: * test/lib/test/unit.rb (Options#non_options): fixed wrong regexp. if both positives and negatives were specified, postives had to be spcicifed from the beginning. Modified files: trunk/ChangeLog trunk/test/lib/test/unit.rb Index: test/lib/test/unit.rb =================================================================== --- test/lib/test/unit.rb (revision 54867) +++ test/lib/test/unit.rb (revision 54868) @@ -110,7 +110,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L110 end unless negative.empty? negative = Regexp.union(*negative.map! {|s| s[neg_pat, 1]}) - filter = /\A(?!.*#{negative})#{filter}/ + filter = /\A(?=.*#{filter})(?!.*#{negative})/ end if Regexp === filter # bypass conversion in minitest Index: ChangeLog =================================================================== --- ChangeLog (revision 54867) +++ ChangeLog (revision 54868) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun May 1 23:51:54 2016 NAKAMURA Usaku <usa@r...> + + * test/lib/test/unit.rb (Options#non_options): fixed wrong regexp. + if both positives and negatives were specified, postives had to + be spcicifed from the beginning. + Sun May 1 21:00:07 2016 NAKAMURA Usaku <usa@r...> * win32/win32.c: drop Win2K support. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/