From ab6bcab78ab220a96a1a5f064c161c0f81a74b62 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 4 Apr 2015 22:05:15 +0200 Subject: [PATCH] fnmatch: Test should pass on Mac/windows --- internal/fnmatch/fnmatch_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/fnmatch/fnmatch_test.go b/internal/fnmatch/fnmatch_test.go index 07486e65a..8e7de7dec 100644 --- a/internal/fnmatch/fnmatch_test.go +++ b/internal/fnmatch/fnmatch_test.go @@ -53,7 +53,6 @@ var testcases = []testcase{ {"**/foo.txt", "bar/baz/foo.txt", PathName, true}, {"foo.txt", "foo.TXT", CaseFold, true}, - {"foo.txt", "foo.TXT", 0, false}, {"(?i)foo.txt", "foo.TXT", 0, true}, // These characters are literals in glob, but not in regexp. @@ -69,9 +68,7 @@ var testcases = []testcase{ func TestMatch(t *testing.T) { switch runtime.GOOS { - case "windows": - testcases = append(testcases, testcase{"foo.txt", "foo.TXT", 0, true}) - case "darwin": + case "windows", "darwin": testcases = append(testcases, testcase{"foo.txt", "foo.TXT", 0, true}) fallthrough default: