From f88826411fee3de0b42819e2488a14c2de388228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 5 Dec 2024 16:14:10 +0800 Subject: [PATCH] add test --- gjson_hack/path_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gjson_hack/path_test.go b/gjson_hack/path_test.go index 41b4914..5654f1e 100644 --- a/gjson_hack/path_test.go +++ b/gjson_hack/path_test.go @@ -96,13 +96,14 @@ func TestPathOnlyFinallyPathWithUnfoldArray(t *testing.T) { "company_info": map[string]any{ "address": "Beijing", "email": "xxx@xxx.com", + "a.b": "cd", }, "sex": "man", "user_list": [][]map[string]any{ []map[string]any{ - {"name": "zhang", "age": 10}, - {"name": "li", "age": 20}, - {"name": "wang", "age": 30}, + {"name": "zhang", "age": 10, "e.f": "g"}, + {"name": "li", "age": 20, "e.f": "g"}, + {"name": "wang", "age": 30, "e.f": "g"}, }, []map[string]any{ {"name": "zhang", "age": 10},