From 8924e9e0e46e0fca88ed566ea4e17976f8581356 Mon Sep 17 00:00:00 2001 From: ^_^void Date: Tue, 25 Feb 2020 10:51:12 +0800 Subject: [PATCH] update unit-test for AllParams() update unit-test for AllParams() --- context_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context_test.go b/context_test.go index 8bd07f8..4c7ef90 100644 --- a/context_test.go +++ b/context_test.go @@ -173,14 +173,14 @@ func Test_Context(t *testing.T) { Convey("All Parameter", func() { m.Get("/:arg/:param/:flag", func(ctx *Context) int { - return len(ctx.AllParams()) + return com.ToStr(len(ctx.AllParams())) }) resp := httptest.NewRecorder() req, err := http.NewRequest("GET", "/arg/param/flag", nil) So(err, ShouldBeNil) m.ServeHTTP(resp,req) - So(resp.Body.Int(), ShouldEqual, 3) + So(resp.Body.String(), ShouldEqual, "3") }) Convey("Get file", func() {