Skip to content

Commit 615401c

Browse files
committed
1 parent cab8e4c commit 615401c

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

test/Clojure_json-path.yaml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -282,20 +282,18 @@ queries:
282282
- id: filter_expression_with_addition
283283
status: open
284284
result: [{"key": 60}, {"key": 50}, {"key": 10}, {"key": -50}, {"key+50": 100}]
285-
- id: filter_expression_with_boolean_and_operator
286-
status: fail
287-
result: [{"key": 43}, {"key": 44}]
288285
- id: filter_expression_with_boolean_and_operator_and_value_false
289-
status: error
286+
status: open
287+
result: []
290288
- id: filter_expression_with_boolean_and_operator_and_value_true
291-
status: error
292-
- id: filter_expression_with_boolean_or_operator
293-
status: fail
294-
result: [{"key": 44}]
289+
status: open
290+
result: [{"key": 1}, {"key": 3}]
295291
- id: filter_expression_with_boolean_or_operator_and_value_false
296-
status: error
292+
status: open
293+
result: [{"key": 1}, {"key": 3}]
297294
- id: filter_expression_with_boolean_or_operator_and_value_true
298-
status: error
295+
status: open
296+
result: [{"key": 1}, {"key": 3}, {"key": "nice"}, {"key": true}, {"key": null}, {"key": false}, {"key": {}}, {"key": []}, {"key": -1}, {"key": 0}, {"key": ""}]
299297
- id: filter_expression_with_bracket_notation
300298
status: error
301299
- id: filter_expression_with_bracket_notation_and_current_object_literal
@@ -314,10 +312,10 @@ queries:
314312
result: ["some value", "value", 0, 1, -1, "", [], {}, false, true]
315313
- id: filter_expression_with_different_grouped_operators
316314
status: open
317-
result: []
315+
result: [{"a": true, "b": true, "c": true}, {"a": true, "c": true}]
318316
- id: filter_expression_with_different_ungrouped_operators
319317
status: open
320-
result: []
318+
result: [{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"a": true, "c": true}]
321319
- id: filter_expression_with_division
322320
status: open
323321
result: [{"key": 60}, {"key": 50}, {"key": 10}, {"key": -50}]
@@ -345,7 +343,8 @@ queries:
345343
- id: filter_expression_with_equals_array_with_single_quotes
346344
status: error
347345
- id: filter_expression_with_equals_boolean_expression_value
348-
status: error
346+
status: open
347+
result: []
349348
- id: filter_expression_with_equals_false
350349
status: open
351350
result: [{"some": "some value"}, {"key": null}]
@@ -406,26 +405,31 @@ queries:
406405
status: open
407406
result: [{"key": 42}]
408407
- id: filter_expression_with_greater_than
409-
status: error
408+
status: open
409+
result: [{"key": 43}, {"key": 42.0001}, {"key": 100}]
410410
- id: filter_expression_with_greater_than_or_equal
411-
status: error
411+
status: open
412+
result: [{"key": 42}, {"key": 43}, {"key": 42.0001}, {"key": 100}]
412413
- id: filter_expression_with_in_array_of_values
413414
status: error
414415
- id: filter_expression_with_in_current_object
415416
status: open
416417
result: []
417418
- id: filter_expression_with_less_than
418-
status: error
419+
status: open
420+
result: [{"key": 0}, {"key": -1}, {"key": 41}, {"key": 41.9999}]
419421
- id: filter_expression_with_less_than_or_equal
420-
status: error
422+
status: open
423+
result: [{"key": 0}, {"key": 42}, {"key": -1}, {"key": 41}, {"key": 41.9999}]
421424
- id: filter_expression_with_multiplication
422425
status: open
423426
result: [{"key": 60}, {"key": 50}, {"key": 10}, {"key": -50}, {"key*2": 100}]
424427
- id: filter_expression_with_negation_and_equals
425428
status: open
426429
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"}]
427430
- id: filter_expression_with_negation_and_less_than
428-
status: error
431+
status: open
432+
result: []
429433
- id: filter_expression_with_negation_and_without_value
430434
status: open
431435
result: [{"key": true}, {"key": false}, {"key": "value"}, {"key": ""}, {"key": 0}, {"key": 1}, {"key": -1}, {"key": 42}, {"key": {}}, {"key": []}]
@@ -451,7 +455,8 @@ queries:
451455
status: fail
452456
result: [{"key": 42}]
453457
- id: filter_expression_with_subfilter
454-
status: error
458+
status: open
459+
result: []
455460
- id: filter_expression_with_subpaths
456461
status: fail
457462
result: []
@@ -484,7 +489,7 @@ queries:
484489
result: []
485490
- id: filter_expression_with_value_true
486491
status: open
487-
result: []
492+
result: [1, 3, "nice", true, null, false, {}, [], -1, 0, ""]
488493
- id: filter_expression_without_parens
489494
status: error
490495
- id: filter_expression_without_value

0 commit comments

Comments
 (0)