mirror of
https://gitee.com/johng/gf
synced 2026-07-05 05:13:14 +08:00
Merge pull request #1 from fainc/master
Update util/gconv/gconv_z_unit_scan_test.go
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user