From c6faea1947cf2cb49870587f09c1d81e0aba4397 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Mon, 22 Aug 2016 08:26:44 -0700 Subject: [PATCH] addtional test --- gjson_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gjson_test.go b/gjson_test.go index 634ffe3..38e2677 100644 --- a/gjson_test.go +++ b/gjson_test.go @@ -332,7 +332,9 @@ func TestIssue6(t *testing.T) { for _, v := range Get(data, "data.sz002024.qfqday.0").Array() { num = append(num, v.String()) } - fmt.Printf("%v\n", num) + if fmt.Sprintf("%v", num) != "[2014-01-02 8.93 9.03 9.17 8.88 621143.00]" { + t.Fatalf("invalid result") + } } var exampleJSON = `{