hamcrest / JavaHamcrest

Java (and original) version of Hamcrest
http://hamcrest.org/
BSD 3-Clause "New" or "Revised" License
2.11k stars 378 forks source link

Added equalToWithDiff for comparing strings with diff message #339

Open night-gale opened 3 years ago

night-gale commented 3 years ago

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 **.

night-gale commented 3 years ago

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 commented 2 years ago

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.