fnmatch: Test should pass on Mac/windows
This commit is contained in:
parent
6e317896e9
commit
ab6bcab78a
@ -53,7 +53,6 @@ var testcases = []testcase{
|
|||||||
{"**/foo.txt", "bar/baz/foo.txt", PathName, true},
|
{"**/foo.txt", "bar/baz/foo.txt", PathName, true},
|
||||||
|
|
||||||
{"foo.txt", "foo.TXT", CaseFold, true},
|
{"foo.txt", "foo.TXT", CaseFold, true},
|
||||||
{"foo.txt", "foo.TXT", 0, false},
|
|
||||||
{"(?i)foo.txt", "foo.TXT", 0, true},
|
{"(?i)foo.txt", "foo.TXT", 0, true},
|
||||||
|
|
||||||
// These characters are literals in glob, but not in regexp.
|
// These characters are literals in glob, but not in regexp.
|
||||||
@ -69,9 +68,7 @@ var testcases = []testcase{
|
|||||||
|
|
||||||
func TestMatch(t *testing.T) {
|
func TestMatch(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "windows":
|
case "windows", "darwin":
|
||||||
testcases = append(testcases, testcase{"foo.txt", "foo.TXT", 0, true})
|
|
||||||
case "darwin":
|
|
||||||
testcases = append(testcases, testcase{"foo.txt", "foo.TXT", 0, true})
|
testcases = append(testcases, testcase{"foo.txt", "foo.TXT", 0, true})
|
||||||
fallthrough
|
fallthrough
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user