初始化代码
This commit is contained in:
22
vendor/mtdowling/jmespath.php/tests/compliance/perf/multiwildcard.json
vendored
Normal file
22
vendor/mtdowling/jmespath.php/tests/compliance/perf/multiwildcard.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
[{
|
||||
"description": "Multiple wildcards in an expression",
|
||||
"given": {
|
||||
"foo": [
|
||||
{"bar": [{"kind": "basic"}, {"kind": "intermediate"}]},
|
||||
{"bar": [{"kind": "advanced"}, {"kind": "expert"}]}
|
||||
]
|
||||
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"name": "multi_wildcard_field",
|
||||
"expression": "foo[*].bar[*].kind",
|
||||
"result": [["basic", "intermediate"], ["advanced", "expert"]]
|
||||
},
|
||||
{
|
||||
"name": "wildcard_with_index",
|
||||
"expression": "foo[*].bar[0].kind",
|
||||
"result": ["basic", "advanced"]
|
||||
}
|
||||
]
|
||||
}]
|
||||
Reference in New Issue
Block a user