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

Issue #208: Be able to ignore order of elements in JSON lists #220

Closed
wants to merge 1 commit into from

Conversation

gwleclerc
Copy link
Collaborator

@gwleclerc gwleclerc commented Sep 28, 2021

Replace smartystreets ShouldEqualJSON by a custom one using https://github.com/kinbiko/jsonassert which handles unordered list in JSON

…nassert to allow unordered list comparaison + presence of fields
@gwleclerc gwleclerc linked an issue Sep 28, 2021 that may be closed by this pull request
@gwleclerc gwleclerc requested a review from Thiht September 28, 2021 22:12
@gwleclerc gwleclerc changed the title Issue #208: Use jsonassert to be able to ignore order of elements in JSON lists Issue #208: Be able to ignore order of elements in JSON lists Sep 28, 2021
@Thiht
Copy link
Collaborator

Thiht commented Sep 29, 2021

berk :p

pas d'accord pour que ShouldEqualJSON ait des comportements différents selon les valeurs qu'on lui passe. Faudrait trouver le moyen de rajouter un opérateur ShouldEqualJSONLoose qui fait ça de façon transparente mais pas comme ça, c'est moche !

@Thiht Thiht closed this Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Ignore order of elements in list in JSON
2 participants