mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64837f778a
commit
b1ec36b2e6
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Sun May 1 23:51:54 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Sun May 1 21:00:07 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* win32/win32.c: drop Win2K support.
|
* win32/win32.c: drop Win2K support.
|
||||||
|
|
|
@ -110,7 +110,7 @@ module Test
|
||||||
end
|
end
|
||||||
unless negative.empty?
|
unless negative.empty?
|
||||||
negative = Regexp.union(*negative.map! {|s| s[neg_pat, 1]})
|
negative = Regexp.union(*negative.map! {|s| s[neg_pat, 1]})
|
||||||
filter = /\A(?!.*#{negative})#{filter}/
|
filter = /\A(?=.*#{filter})(?!.*#{negative})/
|
||||||
end
|
end
|
||||||
if Regexp === filter
|
if Regexp === filter
|
||||||
# bypass conversion in minitest
|
# bypass conversion in minitest
|
||||||
|
|
Loading…
Reference in a new issue