Added test for combining case insensitive and negated patterns (fixes #1678)

This commit is contained in:
Lode Hoste 2015-05-01 00:58:44 +02:00
parent aee40316f8
commit e3cae69495

View File

@ -55,6 +55,7 @@ var testcases = []testcase{
{"foo.txt", "foo.TXT", CaseFold, true},
{"(?i)foo.txt", "foo.TXT", 0, true},
{"(?i)**foo.txt", "/dev/tmp/foo.TXT", 0, true},
{"(?i)!**foo.txt", "/dev/tmp/foo.TXT", 0, false},
// These characters are literals in glob, but not in regexp.
{"hey$hello", "hey$hello", 0, true},