From 2fa558b25f41afcf7c9e9a312e0ecff12b35c052 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 18 Jul 2019 20:06:42 +0800 Subject: [PATCH] improve gjson --- g/encoding/gjson/gjson_z_unit_basic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g/encoding/gjson/gjson_z_unit_basic_test.go b/g/encoding/gjson/gjson_z_unit_basic_test.go index 8d13d1240..af2b9bc26 100644 --- a/g/encoding/gjson/gjson_z_unit_basic_test.go +++ b/g/encoding/gjson/gjson_z_unit_basic_test.go @@ -348,7 +348,7 @@ func Test_Convert2(t *testing.T) { j := gjson.New(`{"name":"gf","time":"2019-06-12"}`) gtest.Assert(j.Value().(g.Map)["name"], "gf") gtest.Assert(j.GetMap("name1"), nil) - gtest.Assert(j.GetJson("name1"), nil) + gtest.AssertNE(j.GetJson("name1"), nil) gtest.Assert(j.GetJsons("name1"), nil) gtest.Assert(j.GetJsonMap("name1"), nil) gtest.Assert(j.Contains("name1"), false)