diff --git a/g/net/ghttp/ghttp_unit_3_test.go b/g/net/ghttp/ghttp_unit_3_test.go index 2193f374e..65c3cb7c2 100644 --- a/g/net/ghttp/ghttp_unit_3_test.go +++ b/g/net/ghttp/ghttp_unit_3_test.go @@ -128,7 +128,7 @@ func Test_Params(t *testing.T) { gtest.Assert(client.PostContent("/post", "float64=0.22"), `0.22`) gtest.Assert(client.PostContent("/post", "int=-10000"), `-10000`) gtest.Assert(client.PostContent("/post", "int=10000"), `10000`) - gtest.Assert(client.PostContent("/post", "uint=-10000"), `10000`) + gtest.Assert(client.PostContent("/post", "uint=10000"), `10000`) gtest.Assert(client.PostContent("/post", "uint=9"), `9`) gtest.Assert(client.PostContent("/post", "string=key"), `key`) diff --git a/g/test/gtest/gtest.go b/g/test/gtest/gtest.go index 298a63be1..f2cfd7d9c 100644 --- a/g/test/gtest/gtest.go +++ b/g/test/gtest/gtest.go @@ -240,7 +240,7 @@ func compareMap(value, expect interface{}) error { if rvExpect.Len() == rvValue.Len() { ksExpect := rvExpect.MapKeys() for _, key := range ksExpect { - if fmt.Sprintf("%v", rvValue.MapIndex(key).Interface()) != rvExpect.MapIndex(key).Interface() { + if fmt.Sprintf("%v", rvValue.MapIndex(key).Interface()) != fmt.Sprintf("%v", rvExpect.MapIndex(key).Interface()) { return fmt.Errorf(`[ASSERT] EXPECT VALUE map["%v"]:%v == %v`, key, rvValue.MapIndex(key).Interface(),