Skip to content

Conversation

gongfarmer
Copy link
Contributor

A few more tests:

  • filter selector, non-matching name and index selectors are equal within a comparison
  • array slice selector, test negative start and end indexes with positive step
  • invalid selector tests for using @ and $ outside of filter expression

There is already an array slice selector test $[-1:-3] with negative start and end, but that one returns no results because the default step doesn't go in the right direction (ie. from start index to end index.)
The point of this new test is that it is a negative start/end query that actually returns values.

@f3ath f3ath requested a review from gregsdennis February 14, 2025 02:52
@f3ath f3ath merged commit f57c21a into jsonpath-standard:main Feb 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants