Skip to content

Conversation

@jarangutan
Copy link
Contributor

Added tests to handle multiple consecutive ands, ors and ands/ors together.

I wasn't sure what to tag these with so I placed them right on top of the other base tests in filter.json. Is there a tag these should ideally go under?

}
],
"result_paths": [
"$[6]"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be $[3] I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your belief is right. That's my b, thought I went back to update this one after testing. Also fixed b in one of the test cases being 2 instead of 1.

Copy link
Collaborator

@f3ath f3ath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@f3ath f3ath merged commit df68f7f into jsonpath-standard:main Oct 16, 2025
2 checks passed
@jarangutan jarangutan deleted the multiple-ands-ors branch October 16, 2025 01:38
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