1
0
Fork 0
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:
usa 2016-05-01 14:54:44 +00:00
parent 64837f778a
commit b1ec36b2e6
2 changed files with 7 additions and 1 deletions

View file

@ -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>
* win32/win32.c: drop Win2K support.

View file

@ -110,7 +110,7 @@ module Test
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