From e3cae69495e9841b07ef7a5856dde15cd0f15512 Mon Sep 17 00:00:00 2001 From: Lode Hoste Date: Fri, 1 May 2015 00:58:44 +0200 Subject: [PATCH] Added test for combining case insensitive and negated patterns (fixes #1678) --- internal/fnmatch/fnmatch_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/fnmatch/fnmatch_test.go b/internal/fnmatch/fnmatch_test.go index 6cac943d2..86372dcb2 100644 --- a/internal/fnmatch/fnmatch_test.go +++ b/internal/fnmatch/fnmatch_test.go @@ -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},