Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support unordered arrays #31

Closed
kinbiko opened this issue Aug 21, 2021 · 0 comments · Fixed by #30
Closed

Support unordered arrays #31

kinbiko opened this issue Aug 21, 2021 · 0 comments · Fixed by #30
Labels
enhancement New feature or request

Comments

@kinbiko
Copy link
Owner

kinbiko commented Aug 21, 2021

What problem are you trying to solve?

It's not possible to use this package to make assertions against payloads that have arrays that aren't deterministic in their ordering.

Describe how you wish this package would help you solve the problem

Expose a directive similar to <<PRESENCE>> that can be added as the first element of the array in order to ignore ordering.

// should pass
ja.Assertf(`["foo", "bar"]`, `["<<UNORDERED>>", "bar", "foo"]`)

References

This issue was created based on the request from @blaskovicz on #25.

@kinbiko kinbiko added the enhancement New feature or request label Aug 21, 2021
@kinbiko kinbiko mentioned this issue Aug 21, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant