Skip to content

Commit

Permalink
tree: add test for #261
Browse files Browse the repository at this point in the history
  • Loading branch information
julienschmidt committed Sep 25, 2019
1 parent ccb1657 commit 4c7fa62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,13 @@ func TestTreeCatchAllConflictRoot(t *testing.T) {
testRoutes(t, routes)
}

func TestTreeCatchMaxParams(t *testing.T) {
tree := &node{}
var route = "/cmd/*filepath"
tree.addRoute(route, fakeHandler(route))
checkMaxParams(t, tree)
}

func TestTreeDoubleWildcard(t *testing.T) {
const panicMsg = "only one wildcard per path segment is allowed"

Expand Down

0 comments on commit 4c7fa62

Please sign in to comment.