Skip to content

Commit

Permalink
test: Add tests for number ranges and sets
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-reymann committed Jan 24, 2025
1 parent 9ee73e3 commit 32ab680
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doublestar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ var matchTests = []MatchTest{
{"nopermission/*", "nopermission/file", true, false, nil, true, false, true, !onWindows, 0, 0},
{"nopermission/dir/", "nopermission/dir", false, false, nil, true, false, true, !onWindows, 0, 0},
{"nopermission/file", "nopermission/file", true, false, nil, true, false, true, !onWindows, 0, 0},
{"[0-9]-doc.md", "2-doc.md", true, false, nil, false, false, true, true, 0, 0},
{"[0-9]-doc.md", "20-doc.md", false, false, nil, false, false, true, true, 0, 0},
{"[0-9]*-doc.md", "20-doc.md", true, false, nil, false, false, true, true, 0, 0},
{"[12]*-doc.md", "2-doc.md", true, false, nil, false, false, true, true, 0, 0},
{"[12]*-doc.md", "3-doc.md", false, false, nil, false, false, true, true, 0, 0},
}

// Calculate the number of results that we expect
Expand Down

0 comments on commit 32ab680

Please sign in to comment.