Bugfix for the FullPath feature (#1919)

* worked with more complex situations
 * the original pr not work when and a short route with the same prefix
 to some already added routes
This commit is contained in:
bbiao
2019-06-28 23:54:52 +08:00
committed by Bo-Yi Wu
parent fc920dc561
commit f65018d7b1
2 changed files with 14 additions and 2 deletions
+6 -1
View File
@@ -560,10 +560,15 @@ func TestRouteContextHoldsFullPath(t *testing.T) {
// Test routes
routes := []string{
"/",
"/simple",
"/project/:name",
"/",
"/news/home",
"/news",
"/simple-two/one",
"/simple-two/one-two",
"/project/:name/build/*params",
"/project/:name/bui",
}
for _, route := range routes {