wildmatch test: cover a blind spot in "/" matching
commitd8604c747b2c9c2b61f1257577c2939e5b07c664
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 15 Jun 2017 21:10:41 +0000 (15 21:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jun 2017 22:02:10 +0000 (15 15:02 -0700)
tree50bd8f7689e131556cda91cc92975c53ddd3bf67
parent44e2ff09cef17eb8b25ceee3a950d88dbdd19252
wildmatch test: cover a blind spot in "/" matching

A negated character class that does not include '/', e.g. [^a-z]:

 - Should match '/' when doing "wildmatch"
 - Should not match '/' when doing "pathmatch"

Add two tests to cover these cases.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3070-wildmatch.sh