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

Show diffs when a binary comparison fails. #31

Merged
merged 4 commits into from
Feb 17, 2024
Merged

Show diffs when a binary comparison fails. #31

merged 4 commits into from
Feb 17, 2024

Conversation

de-vri-es
Copy link
Owner

@de-vri-es de-vri-es commented Feb 17, 2024

This PR adds diffs to the output of assert2 \o/

This should help to easily see what the difference between two values really is.

It also changes the default behaviour to automatically choose between the compact or pretty Debug format based on the size of the compact format. This can be overridden on the command line by setting ASSERT2=compact or ASSERT2=pretty.

multiline-diff

single-line-diff

@de-vri-es de-vri-es merged commit 53973f4 into main Feb 17, 2024
6 checks passed
@de-vri-es de-vri-es deleted the show-diff branch February 17, 2024 12:00
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.

1 participant