forked from cburgmer/json-path-comparison
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClojure_json-path.yaml
570 lines (568 loc) · 19.6 KB
/
Clojure_json-path.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
# This file was generated by src/compile_implementation_report.sh from https://github.com/cburgmer/json-path-comparison/
# This file tracks all results of the given implementation for queries which the implementation either does not match
# an existing consensus or where no consensus exists.
# It can be used to track changes in the underlying implementation and complements the regression report.
implementation: Clojure_json-path
queries:
- id: array_slice
status: fail
result: "second"
- id: array_slice_on_exact_match
status: fail
result: "first"
- id: array_slice_on_non_overlapping_array
status: error
- id: array_slice_on_object
status: error
- id: array_slice_on_partially_overlapping_array
status: fail
result: "second"
- id: array_slice_with_large_number_for_end
status: fail
result: "third"
- id: array_slice_with_large_number_for_end_and_negative_step
status: open
result: "third"
- id: array_slice_with_large_number_for_start
status: error
- id: array_slice_with_large_number_for_start_end_negative_step
status: error
- id: array_slice_with_negative_start_and_end_and_range_of_-1
status: fail
result: 4
- id: array_slice_with_negative_start_and_end_and_range_of_0
status: fail
result: 4
- id: array_slice_with_negative_start_and_end_and_range_of_1
status: fail
result: 4
- id: array_slice_with_negative_start_and_positive_end_and_range_of_-1
status: fail
result: 4
- id: array_slice_with_negative_start_and_positive_end_and_range_of_0
status: fail
result: 4
- id: array_slice_with_negative_start_and_positive_end_and_range_of_1
status: fail
result: 4
- id: array_slice_with_negative_step
status: open
result: "forth"
- id: array_slice_with_negative_step_and_start_greater_than_end
status: open
result: "first"
- id: array_slice_with_negative_step_on_partially_overlapping_array
status: error
- id: array_slice_with_negative_step_only
status: open
result: "forth"
- id: array_slice_with_open_end
status: fail
result: "second"
- id: array_slice_with_open_end_and_negative_step
status: open
result: "forth"
- id: array_slice_with_open_start
status: fail
result: "third"
- id: array_slice_with_open_start_and_end
status: error
- id: array_slice_with_open_start_and_end_and_step_empty
status: error
- id: array_slice_with_open_start_and_end_on_object
status: error
- id: array_slice_with_open_start_and_negative_step
status: open
result: "third"
- id: array_slice_with_positive_start_and_negative_end_and_range_of_-1
status: fail
result: 5
- id: array_slice_with_positive_start_and_negative_end_and_range_of_0
status: fail
result: 5
- id: array_slice_with_positive_start_and_negative_end_and_range_of_1
status: fail
result: 5
- id: array_slice_with_range_of_-1
status: fail
result: "third"
- id: array_slice_with_range_of_0
status: fail
result: "first"
- id: array_slice_with_range_of_1
status: fail
result: "first"
- id: array_slice_with_start_-1_and_open_end
status: fail
result: "third"
- id: array_slice_with_start_-2_and_open_end
status: fail
result: "second"
- id: array_slice_with_start_large_negative_number_and_open_end_on_short_array
status: error
- id: array_slice_with_step
status: fail
result: "first"
- id: array_slice_with_step_0
status: open
result: "first"
- id: array_slice_with_step_1
status: fail
result: "first"
- id: array_slice_with_step_and_leading_zeros
status: fail
result: 10
- id: array_slice_with_step_but_end_not_aligned
status: fail
result: "first"
- id: array_slice_with_step_empty
status: fail
result: "second"
- id: array_slice_with_step_only
status: fail
result: "third"
- id: bracket_notation
status: error
- id: bracket_notation_after_recursive_descent
status: error
- id: bracket_notation_on_object_without_key
status: error
- id: bracket_notation_with_NFC_path_on_NFD_key
status: error
- id: bracket_notation_with_dot
status: error
- id: bracket_notation_with_double_quotes
status: error
- id: bracket_notation_with_empty_path
status: error
- id: bracket_notation_with_empty_string
status: error
- id: bracket_notation_with_empty_string_doubled_quoted
status: error
- id: bracket_notation_with_negative_number_on_short_array
status: error
- id: bracket_notation_with_number_-1_on_empty_array
status: error
- id: bracket_notation_with_number_after_dot_notation_with_wildcard_on_nested_arrays_with_different_length
status: error
- id: bracket_notation_with_number_on_object
status: error
- id: bracket_notation_with_number_on_short_array
status: error
- id: bracket_notation_with_number_on_string
status: error
- id: bracket_notation_with_quoted_array_slice_literal
status: error
- id: bracket_notation_with_quoted_closing_bracket_literal
status: error
- id: bracket_notation_with_quoted_current_object_literal
status: error
- id: bracket_notation_with_quoted_dot_literal
status: error
- id: bracket_notation_with_quoted_dot_wildcard
status: error
- id: bracket_notation_with_quoted_double_quote_literal
status: error
- id: bracket_notation_with_quoted_escaped_backslash
status: error
- id: bracket_notation_with_quoted_escaped_single_quote
status: error
- id: bracket_notation_with_quoted_number_on_object
status: error
- id: bracket_notation_with_quoted_root_literal
status: error
- id: bracket_notation_with_quoted_special_characters_combined
status: error
- id: bracket_notation_with_quoted_string_and_unescaped_single_quote
status: error
- id: bracket_notation_with_quoted_union_literal
status: error
- id: bracket_notation_with_quoted_wildcard_literal
status: fail
result: ["entry", "value"]
- id: bracket_notation_with_quoted_wildcard_literal_on_object_without_key
status: fail
result: ["entry"]
- id: bracket_notation_with_spaces
status: error
- id: bracket_notation_with_string_including_dot_wildcard
status: error
- id: bracket_notation_with_two_literals_separated_by_dot
status: error
- id: bracket_notation_with_two_literals_separated_by_dot_without_quotes
status: error
- id: bracket_notation_with_wildcard_after_array_slice
status: fail
result: [1, 2]
- id: bracket_notation_without_quotes
status: error
- id: current_with_dot_notation
status: open
result: null
- id: dot_bracket_notation
status: error
- id: dot_bracket_notation_with_double_quotes
status: error
- id: dot_bracket_notation_without_quotes
status: error
- id: dot_notation_after_array_slice
status: fail
result: "ey"
- id: dot_notation_after_bracket_notation_after_recursive_descent
status: error
- id: dot_notation_after_bracket_notation_with_wildcard_on_some_matching
status: fail
result: [1, null]
- id: dot_notation_after_filter_expression
status: fail
result: []
- id: dot_notation_after_recursive_descent_with_extra_dot
status: open
result: ["russian dolls", "something", "top", "value", {"key": "russian dolls"}]
- id: dot_notation_after_union
status: fail
result: "ey"
- id: dot_notation_after_union_with_keys
status: error
- id: dot_notation_with_double_quotes
status: open
result: null
- id: dot_notation_with_double_quotes_after_recursive_descent
status: open
result: []
- id: dot_notation_with_empty_path
status: fail
result: {"": 9001, "''": "nice", "key": 42}
- id: dot_notation_with_key_root_literal
status: open
result: {"$": "value"}
- id: dot_notation_with_non_ASCII_key
status: fail
result: {"\u5c6c\u6027": "value"}
- id: dot_notation_with_number
status: open
result: null
- id: dot_notation_with_single_quotes
status: open
result: "value"
- id: dot_notation_with_single_quotes_after_recursive_descent
status: open
result: ["russian dolls", "something", "top", "value", {"key": "russian dolls"}]
- id: dot_notation_with_single_quotes_and_dot
status: open
result: "value"
- id: dot_notation_with_space_padded_key
status: open
result: 2
- id: dot_notation_with_wildcard_after_recursive_descent_on_null_value_array
status: fail
result: [40, 42]
- id: dot_notation_without_dot
status: fail
result: 1
- id: dot_notation_without_root
status: open
result: null
- id: dot_notation_without_root_and_dot
status: open
result: null
- id: empty
status: open
result: null
- id: filter_expression_after_dot_notation_with_wildcard_after_recursive_descent
status: error
- id: filter_expression_after_recursive_descent
status: open
result: [2, 2, 2, 2, 2, [{"id": 2}, {"more": {"id": 2}}, {"id": {"id": 2}}, [{"id": 2}]], [{"id": 2}], {"more": {"id": 2}}]
- id: filter_expression_on_object
status: open
result: [{"key": 1}]
- id: filter_expression_with_addition
status: open
result: [{"key": 60}, {"key": 50}, {"key": 10}, {"key": -50}, {"key+50": 100}]
- id: filter_expression_with_boolean_and_operator_and_value_false
status: open
result: []
- id: filter_expression_with_boolean_and_operator_and_value_true
status: open
result: [{"key": 1}, {"key": 3}]
- id: filter_expression_with_boolean_or_operator_and_value_false
status: open
result: [{"key": 1}, {"key": 3}]
- id: filter_expression_with_boolean_or_operator_and_value_true
status: open
result: [{"key": 1}, {"key": 3}, {"key": "nice"}, {"key": true}, {"key": null}, {"key": false}, {"key": {}}, {"key": []}, {"key": -1}, {"key": 0}, {"key": ""}]
- id: filter_expression_with_bracket_notation
status: error
- id: filter_expression_with_bracket_notation_and_current_object_literal
status: error
- id: filter_expression_with_bracket_notation_with_-1
status: open
result: [null, null, null, null]
- id: filter_expression_with_bracket_notation_with_number
status: fail
result: [null, null]
- id: filter_expression_with_bracket_notation_with_number_on_object
status: open
result: [null, null]
- id: filter_expression_with_current_object
status: open
result: ["some value", "value", 0, 1, -1, "", [], {}, false, true]
- id: filter_expression_with_different_grouped_operators
status: open
result: [{"a": true, "b": true, "c": true}, {"a": true, "c": true}]
- id: filter_expression_with_different_ungrouped_operators
status: open
result: [{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"a": true, "c": true}]
- id: filter_expression_with_division
status: open
result: [{"key": 60}, {"key": 50}, {"key": 10}, {"key": -50}]
- id: filter_expression_with_dot_notation_with_dash
status: open
result: []
- id: filter_expression_with_dot_notation_with_number
status: open
result: []
- id: filter_expression_with_dot_notation_with_number_on_array
status: open
result: [["first", "second", "third", "forth", "fifth"]]
- id: filter_expression_with_empty_expression
status: fail
result: []
- id: filter_expression_with_equals
status: open
result: [{"key": null}, {"some": "value"}]
- id: filter_expression_with_equals_array
status: error
- id: filter_expression_with_equals_array_for_array_slice_with_range_1
status: error
- id: filter_expression_with_equals_array_for_dot_notation_with_star
status: error
- id: filter_expression_with_equals_array_or_equals_true
status: error
- id: filter_expression_with_equals_array_with_single_quotes
status: error
- id: filter_expression_with_equals_boolean_expression_value
status: open
result: []
- id: filter_expression_with_equals_false
status: open
result: [{"some": "some value"}, {"key": null}]
- id: filter_expression_with_equals_null
status: open
result: [{"some": "some value"}, {"key": null}]
- id: filter_expression_with_equals_number_for_array_slice_with_range_1
status: error
- id: filter_expression_with_equals_number_for_bracket_notation_with_star
status: open
result: []
- id: filter_expression_with_equals_number_for_dot_notation_with_star
status: open
result: [[1, 2], [2, 3], [1], [2], [1, 2, 3], 1, 2, 3]
- id: filter_expression_with_equals_number_with_fraction
status: open
result: []
- id: filter_expression_with_equals_number_with_leading_zeros
status: open
result: []
- id: filter_expression_with_equals_object
status: open
result: [{"d": null}, "v"]
- id: filter_expression_with_equals_on_array_of_numbers
status: fail
result: [null]
- id: filter_expression_with_equals_on_object
status: open
result: [{"some": "value"}]
- id: filter_expression_with_equals_on_object_with_key_matching_query
status: fail
result: [2]
- id: filter_expression_with_equals_string
status: fail
result: [{"key": null}, {"some": "value"}]
- id: filter_expression_with_equals_string_in_NFC
status: fail
result: []
- id: filter_expression_with_equals_string_with_current_object_literal
status: fail
result: []
- id: filter_expression_with_equals_string_with_dot_literal
status: fail
result: []
- id: filter_expression_with_equals_string_with_single_quotes
status: fail
result: []
- id: filter_expression_with_equals_string_with_unicode_character_escape
status: open
result: []
- id: filter_expression_with_equals_true
status: open
result: [{"some": "some value"}, {"key": null}]
- id: filter_expression_with_equals_with_path_and_path
status: open
result: [{"key2": 10}, {}, {"key1": null, "key2": null}, {"key1": null}, {"key2": null}, {"key2": 0}, {"key2": false}]
- id: filter_expression_with_equals_with_root_reference
status: open
result: [{"key": 42}]
- id: filter_expression_with_greater_than
status: open
result: [{"key": 43}, {"key": 42.0001}, {"key": 100}]
- id: filter_expression_with_greater_than_or_equal
status: open
result: [{"key": 42}, {"key": 43}, {"key": 42.0001}, {"key": 100}]
- id: filter_expression_with_greater_than_string
status: error
- id: filter_expression_with_in_array_of_values
status: error
- id: filter_expression_with_in_current_object
status: open
result: []
- id: filter_expression_with_length_free_function
status: open
result: []
- id: filter_expression_with_length_function
status: open
result: []
- id: filter_expression_with_length_property
status: fail
result: [[1, 2, 3, 4, 5], [1, 2, 3, 4], [1, 2, 3]]
- id: filter_expression_with_less_than
status: open
result: [{"key": 0}, {"key": -1}, {"key": 41}, {"key": 41.9999}]
- id: filter_expression_with_less_than_or_equal
status: open
result: [{"key": 0}, {"key": 42}, {"key": -1}, {"key": 41}, {"key": 41.9999}]
- id: filter_expression_with_local_dot_key_and_null_in_data
status: fail
result: [null, {"some": "value"}]
- id: filter_expression_with_multiplication
status: open
result: [{"key": 60}, {"key": 50}, {"key": 10}, {"key": -50}, {"key*2": 100}]
- id: filter_expression_with_negation_and_equals
status: open
result: [{"key": 0}, {"key": 42}, {"key": -1}, {"key": 41}, {"key": 43}, {"key": 42.0001}, {"key": 41.9999}, {"key": 100}, {"key": "43"}, {"key": "42"}, {"key": "41"}, {"key": "value"}, {"some": "value"}]
- id: filter_expression_with_negation_and_equals_array_or_equals_true
status: error
- id: filter_expression_with_negation_and_less_than
status: open
result: []
- id: filter_expression_with_negation_and_without_value
status: open
result: [{"key": true}, {"key": false}, {"key": "value"}, {"key": ""}, {"key": 0}, {"key": 1}, {"key": -1}, {"key": 42}, {"key": {}}, {"key": []}]
- id: filter_expression_with_non_singular_existence_test
status: open
result: []
- id: filter_expression_with_not_equals
status: open
result: [{"key": 0}, {"key": -1}, {"key": 1}, {"key": 41}, {"key": 43}, {"key": 42.0001}, {"key": 41.9999}, {"key": 100}, {"key": "some"}, {"key": "42"}, {"key": null}, {"key": 420}, {"key": ""}, {"key": {}}, {"key": []}, {"key": [42]}, {"key": {"key": 42}}, {"key": {"some": 42}}, {"some": "value"}]
- id: filter_expression_with_not_equals_array_or_equals_true
status: open
result: []
- id: filter_expression_with_parent_axis_operator
status: fail
result: []
- id: filter_expression_with_regular_expression
status: open
result: []
- id: filter_expression_with_regular_expression_from_member
status: open
result: [{"pattern": "hello.*"}]
- id: filter_expression_with_set_wise_comparison_to_scalar
status: open
result: []
- id: filter_expression_with_set_wise_comparison_to_set
status: open
result: []
- id: filter_expression_with_single_equal
status: fail
result: [{"key": 42}]
- id: filter_expression_with_subfilter
status: open
result: []
- id: filter_expression_with_subpaths
status: fail
result: []
- id: filter_expression_with_subtraction
status: open
result: [{"key": 60}, {"key": 50}, {"key": 10}, {"key": -50}]
- id: filter_expression_with_tautological_comparison
status: open
result: []
- id: filter_expression_with_triple_equal
status: open
result: [{"key": null}, {"some": "value"}]
- id: filter_expression_with_value
status: open
result: [{"key": true}, {"key": false}, {"key": "value"}, {"key": ""}, {"key": 0}, {"key": 1}, {"key": -1}, {"key": 42}, {"key": {}}, {"key": []}]
- id: filter_expression_with_value_after_recursive_descent
status: open
result: [{"id": 2}, {"id": 2}, {"id": 2}, {"id": 2}, {"id": {"id": 2}}]
- id: filter_expression_with_value_false
status: open
result: []
- id: filter_expression_with_value_from_recursive_descent
status: open
result: []
- id: filter_expression_with_value_null
status: open
result: []
- id: filter_expression_with_value_true
status: open
result: [1, 3, "nice", true, null, false, {}, [], -1, 0, ""]
- id: filter_expression_without_parens
status: error
- id: filter_expression_without_value
status: open
result: [{"key": true}, {"key": false}, {"key": "value"}, {"key": ""}, {"key": 0}, {"key": 1}, {"key": -1}, {"key": 42}, {"key": {}}, {"key": []}]
- id: function_sum
status: open
result: null
- id: parens_notation
status: fail
result: null
- id: recursive_descent
status: open
result: [0, 1, [0, 1], [{"a": {"b": "c"}}, [0, 1]], {"a": {"b": "c"}}, {"b": "c"}]
- id: recursive_descent_after_dot_notation
status: open
result: [0, 1, [0, 1], {"complex": "string", "primitives": [0, 1]}]
- id: script_expression
status: error
- id: union
status: fail
result: "first"
- id: union_with_duplication_from_array
status: fail
result: "a"
- id: union_with_duplication_from_object
status: error
- id: union_with_filter
status: open
result: [{"key": 1}, {"key": 2}]
- id: union_with_keys
status: error
- id: union_with_keys_after_array_slice
status: error
- id: union_with_keys_after_bracket_notation
status: error
- id: union_with_keys_after_dot_notation_with_wildcard
status: error
- id: union_with_keys_after_recursive_descent
status: error
- id: union_with_keys_on_object_without_key
status: error
- id: union_with_numbers_in_decreasing_order
status: fail
result: 5
- id: union_with_repeated_matches_after_dot_notation_with_wildcard
status: open
result: ["string", false]
- id: union_with_slice_and_number
status: open
result: 2
- id: union_with_spaces
status: fail
result: "first"
- id: union_with_wildcard_and_number
status: fail
result: ["first", "second", "third", "forth", "fifth"]