Skip to content

Add tests for consecutive ands and ors in filter. Resolves #111 - #112

Merged
f3ath merged 1 commit into
jsonpath-standard:mainfrom
jarangutan:multiple-ands-ors
Oct 16, 2025
Merged

f3ath merged 1 commit into
jsonpath-standard:mainfrom
jarangutan:multiple-ands-ors

Conversation

@jarangutan

Copy link
Copy Markdown
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?

Comment thread tests/filter.json Outdated
}
],
"result_paths": [
"$[6]"

Copy link
Copy Markdown
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
Copy Markdown
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.

@f3ath f3ath left a comment

Copy link
Copy Markdown
Collaborator

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