Skip to content

Commit

Permalink
fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatcuk committed Nov 5, 2022
1 parent 438017c commit 315bbcf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions doublestar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ var matchTests = []MatchTest{
{"a/**", "a/", true, true, nil, false, false, false, 7, 7},
{"a/**", "a/b", true, true, nil, false, false, true, 7, 7},
{"a/**", "a/b/c", true, true, nil, false, false, true, 7, 7},
{"**/c", "c", true, true, nil, true, false, true, 5, 4},
{"**/c", "b/c", true, true, nil, true, false, true, 5, 4},
{"**/c", "a/b/c", true, true, nil, true, false, true, 5, 4},
{"**/c", "a/b", false, false, nil, true, false, true, 5, 4},
{"**/c", "abcd", false, false, nil, true, false, true, 5, 4},
{"**/c", "a/abc", false, false, nil, true, false, true, 5, 4},
{"**/c", "c", true, true, nil, !onWindows, false, true, 5, 4},
{"**/c", "b/c", true, true, nil, !onWindows, false, true, 5, 4},
{"**/c", "a/b/c", true, true, nil, !onWindows, false, true, 5, 4},
{"**/c", "a/b", false, false, nil, !onWindows, false, true, 5, 4},
{"**/c", "abcd", false, false, nil, !onWindows, false, true, 5, 4},
{"**/c", "a/abc", false, false, nil, !onWindows, false, true, 5, 4},
{"a/**/b", "a/b", true, true, nil, false, false, true, 2, 2},
{"a/**/c", "a/b/c", true, true, nil, false, false, true, 2, 2},
{"a/**/d", "a/b/c/d", true, true, nil, false, false, true, 1, 1},
Expand All @@ -133,11 +133,11 @@ var matchTests = []MatchTest{
{"{a/abc}", "a/abc", true, true, nil, false, false, true, 1, 1},
{"{a/b,a/c}", "a/c", true, true, nil, false, false, true, 2, 2},
{"abc/**", "abc/b", true, true, nil, false, false, true, 3, 3},
{"**/abc", "abc", true, true, nil, true, false, true, 2, 2},
{"**/abc", "abc", true, true, nil, !onWindows, false, true, 2, 2},
{"abc**", "abc/b", false, false, nil, false, false, true, 3, 3},
{"**/*.txt", "abc/【test】.txt", true, true, nil, true, false, true, 1, 1},
{"**/【*", "abc/【test】.txt", true, true, nil, true, false, true, 1, 1},
{"**/{a,b}", "a/b", true, true, nil, true, false, true, 5, 5},
{"**/*.txt", "abc/【test】.txt", true, true, nil, !onWindows, false, true, 1, 1},
{"**/【*", "abc/【test】.txt", true, true, nil, !onWindows, false, true, 1, 1},
{"**/{a,b}", "a/b", true, true, nil, !onWindows, false, true, 5, 5},
// unfortunately, io/fs can't handle this, so neither can Glob =(
{"broken-symlink", "broken-symlink", true, true, nil, false, true, false, 1, 1},
{"broken-symlink/*", "a", false, false, nil, false, true, true, 0, 0},
Expand Down

0 comments on commit 315bbcf

Please sign in to comment.