diff options
Diffstat (limited to 'router_test.go')
-rw-r--r-- | router_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/router_test.go b/router_test.go index bc6bc0c..8ee2bcc 100644 --- a/router_test.go +++ b/router_test.go @@ -18,13 +18,13 @@ func TestBasic(t *testing.T) { router.AddRoute(&Route{Method: "GET", Path: "/blog/:year/:month/:day", Code: testRoute}) router.AddRoute(&Route{Method: "GET", Path: "/blog", Code: testRoute}) - if router.Routes[0].Path != "/" { + if router.routes[0].Path != "/" { t.Fatal() } - if router.Routes[1].Path != "/blog/:year/:month/:day" { + if router.routes[1].Path != "/blog/:year/:month/:day" { t.Fatal() } - if router.Routes[2].Path != "/blog" { + if router.routes[2].Path != "/blog" { t.Fatal() } } |