diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-01 14:54:44 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-01 14:54:44 +0000 |
commit | 347bb5f5d4c3346f4f748752d99563d39bc6ae68 (patch) | |
tree | 209dc4fe015bf7a8f4da846e2ff9370af41313ca /test/lib | |
parent | 35ba4fcee58f16c5cb01fbd1ba4ed36391f5fcb2 (diff) | |
download | ruby-347bb5f5d4c3346f4f748752d99563d39bc6ae68.tar.gz |
* 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.rb | 2 |
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 |