1
0
mirror of https://github.com/labstack/echo.git synced 2025-12-01 22:51:17 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-03-11 07:53:54 -08:00
parent 300d57894d
commit 09f3d3061f
6 changed files with 18 additions and 28 deletions

View File

@@ -411,7 +411,7 @@ func TestRouterMultiRoute(t *testing.T) {
c = NewContext(nil, nil, e)
r.Find(GET, "/user", c)
he := c.Handle(c).(*HTTPError)
assert.Equal(t, http.StatusNotFound, he.code)
assert.Equal(t, http.StatusNotFound, he.Code)
}
func TestRouterPriority(t *testing.T) {
@@ -514,7 +514,7 @@ func TestRouterPriorityNotFound(t *testing.T) {
c = NewContext(nil, nil, e)
r.Find(GET, "/abc/def", c)
he := c.Handle(c).(*HTTPError)
assert.Equal(t, http.StatusNotFound, he.Code())
assert.Equal(t, http.StatusNotFound, he.Code)
}
func TestRouterParamNames(t *testing.T) {