Skip to content

Commit 4c7fa62

Browse files
committed
tree: add test for #261
1 parent ccb1657 commit 4c7fa62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tree_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,13 @@ func TestTreeCatchAllConflictRoot(t *testing.T) {
344344
testRoutes(t, routes)
345345
}
346346

347+
func TestTreeCatchMaxParams(t *testing.T) {
348+
tree := &node{}
349+
var route = "/cmd/*filepath"
350+
tree.addRoute(route, fakeHandler(route))
351+
checkMaxParams(t, tree)
352+
}
353+
347354
func TestTreeDoubleWildcard(t *testing.T) {
348355
const panicMsg = "only one wildcard per path segment is allowed"
349356

0 commit comments

Comments
 (0)