Skip to content

Commit 8bf42a3

Browse files
committed
Update regression tests following evaluation against latest release
1 parent 3986c94 commit 8bf42a3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/Clojure_json-path.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ queries:
1616
- id: array_index_last
1717
selector: $[-1]
1818
document: ["first", "second", "third"]
19-
status: error
19+
result: "third"
20+
status: pass
2021
- id: array_index_out_of_bounds
2122
selector: $[1]
2223
document: ["one element"]
@@ -30,7 +31,8 @@ queries:
3031
- id: array_index_slice_last_no_end
3132
selector: $[-1:]
3233
document: ["first", "second", "third"]
33-
status: error
34+
result: "third"
35+
status: fail
3436
consensus: ["third"]
3537
- id: array_index_slice_no_start_no_end
3638
selector: $[:]
@@ -183,16 +185,18 @@ queries:
183185
- id: recursive_on_nested_object
184186
selector: $.store..price
185187
document: {"store": {"book": [{"category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95}, {"category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99}, {"category": "fiction", "author": "Herman Melville", "title": "Moby Dick", "isbn": "0-553-21311-3", "price": 8.99}, {"category": "fiction", "author": "J. R. R. Tolkien", "title": "The Lord of the Rings", "isbn": "0-395-19395-8", "price": 22.99}], "bicycle": {"color": "red", "price": 19.95}}}
186-
status: error
187-
consensus: [8.95, 12.99, 8.99, 22.99, 19.95]
188+
result: [8.95, 12.99, 8.99, 22.99, 19.95]
189+
status: pass
188190
- id: recursive_wildcard
189191
selector: $..*
190192
document: {"key": "value", "another key": {"complex": "string", "primitives": [0, 1]}}
191-
status: error
193+
result: ["value", {"complex": "string", "primitives": [0, 1]}, "string", [0, 1], 0, 1]
194+
status: pass
192195
- id: recursive_wildcard_on_null_value_array
193196
selector: $..*
194197
document: [40, null, 42]
195-
status: error
198+
result: [40, 42]
199+
status: fail
196200
consensus: [40, null, 42]
197201
- id: recursive_wildcard_on_scalar
198202
selector: $..*
@@ -207,9 +211,8 @@ queries:
207211
- id: wildcard_bracket_notation_on_array
208212
selector: $[*]
209213
document: ["string", 42, {"key": "value"}, [0, 1]]
210-
result: ["string", 42, {"key": "value"}, 0, 1]
211-
status: fail
212-
consensus: ["string", 42, {"key": "value"}, [0, 1]]
214+
result: ["string", 42, {"key": "value"}, [0, 1]]
215+
status: pass
213216
- id: wildcard_bracket_notation_on_null_value_array
214217
selector: $[*]
215218
document: [40, null, 42]
@@ -218,18 +221,15 @@ queries:
218221
- id: wildcard_bracket_notation_on_object
219222
selector: $[*]
220223
document: {"some": "string", "int": 42, "object": {"key": "value"}, "array": [0, 1]}
221-
result: ["string", 42, {"key": "value"}, 0, 1]
222-
status: fail
223-
consensus: ["string", 42, {"key": "value"}, [0, 1]]
224+
result: ["string", 42, {"key": "value"}, [0, 1]]
225+
status: pass
224226
- id: wildcard_dot_notation_on_array
225227
selector: $.*
226228
document: ["string", 42, {"key": "value"}, [0, 1]]
227-
result: ["string", 42, {"key": "value"}, 0, 1]
228-
status: fail
229-
consensus: ["string", 42, {"key": "value"}, [0, 1]]
229+
result: ["string", 42, {"key": "value"}, [0, 1]]
230+
status: pass
230231
- id: wildcard_dot_notation_on_object
231232
selector: $.*
232233
document: {"some": "string", "int": 42, "object": {"key": "value"}, "array": [0, 1]}
233-
result: ["string", 42, {"key": "value"}, 0, 1]
234-
status: fail
235-
consensus: ["string", 42, {"key": "value"}, [0, 1]]
234+
result: ["string", 42, {"key": "value"}, [0, 1]]
235+
status: pass

0 commit comments

Comments
 (0)