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

org.junut4.ComparisonFailure thrown in jvm module only #202

Merged
merged 3 commits into from
Jul 11, 2021

Conversation

drcolombo
Copy link
Contributor

There're really a lot of changes targeting all 3 platforms related to org.junit4.ComparisonFailure exception that is used by IntelliJ IDEA and AndriodStudio to show very useful "compare" window in case of asserts related to equals/not equals/equivalent/not equivalent.
And finally Equivalency functionality is supported with assertSoftly notation.

…once a complex property is compared and it's 'the same' it stopped comparing other simple properties.

Improved formatting of complex nested types in Equivalency.toStructureString() and Equivalency.iterableToStructuredString() methods (caused by the bug described above).
…ion in the jvm module only - js and native use AssertionError instead.

Added support of assertSoftly in Equavalency.kt.
@MarkusAmshove
Copy link
Owner

Thank you for the PR, I'll have a closer look this weekend because there are a lot of changes :-)

@MarkusAmshove
Copy link
Owner

I've looked through the changes and they all seem fine 👍

I've also tested the diff window with both Windows and Linux, works on both :-)

For equality, like shouldBeEqualTo the window still doesn't show up, but I do have a fix ready for that.

@MarkusAmshove MarkusAmshove merged commit 557ec12 into MarkusAmshove:master Jul 11, 2021
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