Skip to content

Conversation

Marcono1234
Copy link
Contributor

Unless I have overlooked something, the existing tests (code in the lines below my changes) was only covering invalid non-singular filters.

These tests also make sure that for example

  • ?@[0, 0, 'a'] does not cause the result to contain duplicate values (despite the duplicate 0)
  • a slice such as ?@[0:2] does not truncate the result if the array has more elements

@Marcono1234 Marcono1234 changed the title Add tests for valid non-singular filter Add filter tests for valid non-singular segment Mar 23, 2024
Copy link
Collaborator

@gregsdennis gregsdennis left a comment

Choose a reason for hiding this comment

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

These pass for me. Just a minor update on one of them.

@Marcono1234
Copy link
Contributor Author

Have corrected the typo in the test names and squashed all changes into a single commit again.

@gregsdennis gregsdennis merged commit 765c90b into jsonpath-standard:main Mar 27, 2024
@Marcono1234 Marcono1234 deleted the filter-non-singular-valid branch March 27, 2024 20:58
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.

3 participants