From ea73b4a9b9dcdd7cea42b43172e0ad6e09b1f599 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Mon, 24 Dec 2018 21:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AE=80=E5=8D=95=E7=9A=84te?= =?UTF-8?q?st?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gjson_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gjson_test.go b/gjson_test.go index 45785a5..c99db71 100644 --- a/gjson_test.go +++ b/gjson_test.go @@ -5,7 +5,6 @@ import ( "encoding/hex" "encoding/json" "fmt" - "log" "math/rand" "reflect" "strconv" @@ -1445,6 +1444,7 @@ func TestRegexp(t *testing.T) { func TestChinese(t *testing.T) { js := `{"data": [{"f":"\"广告"}, {"f": "广告"}]}` mtok := get(js, `data.#[f=""广告"]#`) - log.Println(mtok.Array()[0].String()) - t.Error("") + if mtok.Array()[0].String() != `{"f":"\"广告"}` { + t.Error("error", mtok.Array()) + } }