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

Refine assertJSONEquivalent so that it is more forgiving. #213

Open
mihaelamj opened this issue Mar 23, 2021 · 0 comments
Open

Refine assertJSONEquivalent so that it is more forgiving. #213

mihaelamj opened this issue Mar 23, 2021 · 0 comments

Comments

@mihaelamj
Copy link
Contributor

The function assertJSONEquivalent that is only used in the testing suite, should be a bit more forgiving when comparing JSON strings.
Here's a ghist demonstrating a failing test for JSON strings that should be considered equivalent.

https://gist.github.com/mihaelamj/de29510a1444c3ab307a2cc7fd284c9f

Here's another ghist demonstration of how to adapt the codable model from a previous one, so that the comparison would evaluate to equivalent:

https://gist.github.com/mattpolzin/b8cf851cb2d61321909ce7d54d3f0a1e

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

No branches or pull requests

1 participant