summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-01 14:54:44 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-01 14:54:44 +0000
commitb1ec36b2e6fc9b54688103a1dd76de5a1ff14ed6 (patch)
tree209dc4fe015bf7a8f4da846e2ff9370af41313ca /test/lib
parent64837f778aa429aeaffa5207a2d7031c8667ca0e (diff)
* 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
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index c5dd29b0cf..d34e11afa7 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -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