Skip to content

Commit 8164dfe

Browse files
author
chenfeng
committed
修改object案例
1 parent a2b3fe9 commit 8164dfe

File tree

2 files changed

+664
-558
lines changed

2 files changed

+664
-558
lines changed

json-diff-test/src/main/resources/array/MultArrays.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4322,7 +4322,6 @@
43224322
},
43234323
{
43244324
"caseName": "忽略根下的数组 后续改进【目前不支持】",
4325-
"skip": true,
43264325
"actual": [
43274326
[
43284327
{
@@ -8589,6 +8588,29 @@
85898588
"ignorePath": [
85908589
"$[*][*]"
85918590
]
8591+
},
8592+
"ret": {
8593+
"defectsList": [
8594+
{
8595+
"actual": "2",
8596+
"illustrate": "Only one set of keys exists expect('null'),actual('v')",
8597+
"travelPath": {
8598+
"abstractTravelPath": "$[*][*].a[*].v",
8599+
"actualTravelPath": "$[0][0].a[0].v",
8600+
"expectTravelPath": "$[0][0].a[0].null"
8601+
}
8602+
},
8603+
{
8604+
"actual": "12",
8605+
"illustrate": "Only one set of keys exists expect('null'),actual('a')",
8606+
"travelPath": {
8607+
"abstractTravelPath": "$[*][*].a[*].a",
8608+
"actualTravelPath": "$[0][0].a[1].a",
8609+
"expectTravelPath": "$[0][0].a[1].null"
8610+
}
8611+
}
8612+
],
8613+
"match": false
85928614
}
85938615
},
85948616
{
@@ -9183,6 +9205,9 @@
91839205
"mapping": {
91849206
"a": "b"
91859207
}
9208+
},
9209+
"ret": {
9210+
"match": true
91869211
}
91879212
},
91889213
{
@@ -10409,7 +10434,8 @@
1040910434
"ignorePath": [
1041010435
"$[*].f"
1041110436
]
10412-
}
10437+
},
10438+
"ret": {}
1041310439
},
1041410440
{
1041510441
"caseName": "配置mapping和ignoreOrder和ignorePath 预期中存在实际没有得值e TODO",

0 commit comments

Comments
 (0)