Update util/gconv/gconv_z_unit_scan_test.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
hailaz
2025-06-20 18:17:40 +08:00
committed by GitHub
parent afb1595fbe
commit 7180d895ea

View File

@ -432,7 +432,9 @@ func TestScanDeepSlice(t *testing.T) {
data2 = gjson.New("[[[1,2,3]],[[4,5,6]]]")
)
err := data1.Scan(&req)
t.AssertNil(err)
err = gconv.Scan(data1.String(), &req)
t.AssertNil(err)
err = data2.Scan(&req2)
t.AssertNil(err)
t.Assert(len(req), 2)