diff options
Diffstat (limited to 'internal/pathtree_test.go')
-rw-r--r-- | internal/pathtree_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/pathtree_test.go b/internal/pathtree_test.go index e152e85..d9df757 100644 --- a/internal/pathtree_test.go +++ b/internal/pathtree_test.go @@ -34,6 +34,7 @@ func TestPathTree(t *testing.T) { {"/a/b", 3}, {"/c", 4}, {"/x/:y/z/*rest", 5}, + {"/f/prefix:y/z/*rest", 6}, }, paths: map[string]matchresult{ "/a": { @@ -66,6 +67,13 @@ func TestPathTree(t *testing.T) { "/": { failed: true, }, + "/f/mismatch/z/more": { + failed: true, + }, + "/f/prefixblargh/z/more": { + value: 6, + params: map[string]string{"y": "blargh", "rest": "more"}, + }, }, }, { |