add failing edgecase

This commit is contained in:
6543 2021-11-24 02:08:01 +01:00
parent 37a79bff73
commit fb4b3a57ed
No known key found for this signature in database
GPG Key ID: C99B82E40B027BAE

View File

@ -317,6 +317,8 @@ func TestTreeWildcard(t *testing.T) {
{"/get/abc/123abf/testss", false, "/get/abc/123abf/:param", Params{Param{Key: "param", Value: "testss"}}}, {"/get/abc/123abf/testss", false, "/get/abc/123abf/:param", Params{Param{Key: "param", Value: "testss"}}},
{"/get/abc/123abfff/te", false, "/get/abc/123abfff/:param", Params{Param{Key: "param", Value: "te"}}}, {"/get/abc/123abfff/te", false, "/get/abc/123abfff/:param", Params{Param{Key: "param", Value: "te"}}},
{"/get/address/B", false, "/get/address/:address", Params{{Key: "address", Value: "B"}}}, {"/get/address/B", false, "/get/address/:address", Params{{Key: "address", Value: "B"}}},
{"/get/address/https://nono.de", false, "/get/address/:address", Params{{Key: "address", Value: "https://nono.de"}}},
{"/get/address/https%3A%2F%2Fnono.de", false, "/get/address/:address", Params{{Key: "address", Value: "https://nono.de"}}},
}) })
checkPriorities(t, tree) checkPriorities(t, tree)