diff --git a/fox_test.go b/fox_test.go index 33346a1..62b2f64 100644 --- a/fox_test.go +++ b/fox_test.go @@ -2802,6 +2802,18 @@ func TestParseRoute(t *testing.T) { wantErr: ErrInvalidRoute, wantN: 0, }, + { + name: "empty infix catch all", + path: "/foo/bar/*{}/baz", + wantErr: ErrInvalidRoute, + wantN: 0, + }, + { + name: "empty ending catch all", + path: "/foo/bar/baz/*{}", + wantErr: ErrInvalidRoute, + wantN: 0, + }, { name: "unexpected character in param", path: "/foo/{{bar}",