From 508a57be1efa3a4638ba4729f2f4e63c3a18d6bb Mon Sep 17 00:00:00 2001 From: Yongzheng Lai Date: Sun, 6 Sep 2015 12:07:12 +0800 Subject: [PATCH] Update tree_test.go --- tree_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tree_test.go b/tree_test.go index 1d2890e1..40065e77 100644 --- a/tree_test.go +++ b/tree_test.go @@ -26,6 +26,10 @@ var routers []testinfo func init() { routers = make([]testinfo, 0) + routers = append(routers, testinfo{"/topic/:id/?:auth", "/topic/1", map[string]string{":id": "1"}}) + routers = append(routers, testinfo{"/topic/:id/?:auth", "/topic/1/2", map[string]string{":id": "1",":auth":"2"}}) + routers = append(routers, testinfo{"/topic/:id/?:auth:int", "/topic/1", map[string]string{":id": "1"}}) + routers = append(routers, testinfo{"/topic/:id/?:auth:int", "/topic/1/123", map[string]string{":id": "1",":auth":"123"}}) routers = append(routers, testinfo{"/:id", "/123", map[string]string{":id": "123"}}) routers = append(routers, testinfo{"/hello/?:id", "/hello", map[string]string{":id": ""}}) routers = append(routers, testinfo{"/", "/", nil})