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

Added equalToWithDiff for comparing strings with diff message #339

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

night-gale
Copy link

Fixed #209
Added a new Matcher equalToWithDiff for compare string. When mismatch happens, instead of output two strings, only lines that mismatch would be output. For words in those lines that mismatch would be surrounded by ~, the expected words would be surrounded by **.

  • To implement this, the external library io.github.java-diff-utils:java-diff-utils:4.5 is introduced.
  • test class IsEqualWithDiffTest is created

@night-gale
Copy link
Author

night-gale commented Apr 25, 2021

The library io.github.java-diff-utils:java-diff-utils:4.5 uses some java 1.8 features. That could be the reason why only the compilation with java 1.7 fails. Maybe issue #331 should be resolved first...

@nhojpatrick
Copy link
Member

Going to try and kick start hamcrest, so if you want to get it merged, please rebase from the branch v2.3-candidates.
Still trying to understand how has permissions to perform a release.

@nhojpatrick nhojpatrick force-pushed the master branch 2 times, most recently from 9bc653b to e9f7fc8 Compare February 13, 2022 17:06
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.

equalTo matcher should show a diff of the difference to make it possible to see where it is
3 participants