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

Only remove unquoted whitespace from JSON strings for comparison #1512

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Nov 15, 2021

Goal

Only remove unquoted whitespace in JSON strings before comparing them. This retains the correct data for comparison, while avoiding changing the keys or values that we are testing for, and keeping test failure messages helpful.

Testing

Altered the existing test fixtures to expect whitespace to be transmitted in keys and values.

@lemnik lemnik requested review from kattrali and kstenerud and removed request for kattrali November 15, 2021 17:13
@lemnik lemnik merged commit 4471372 into next Nov 16, 2021
@lemnik lemnik deleted the lemnik/fix-json-compare branch November 16, 2021 09:17
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