JavaHamcrest icon indicating copy to clipboard operation
JavaHamcrest copied to clipboard

enhancement on issue #196

Open Harlan1997 opened this issue 4 years ago • 1 comments

To specifying the demand of issue #196. I did research on types of whitespace and I pick some most common whitespace: space, tab, line feed, form feed, carriagereturn. Then I modified equalToCompressingWhiteSpace by adding a property whiteSpaceType which is a enum type variable with 6 types of whitespace: space, tab, line feed, form feed, carriagereturn, mix(mix types above). From this, I modify the constructor. To change the match rule, I modified stripSpaces to strip string according to different types of whitespace. To prevent conflicts, I added 6 types of matcher generators, public static Matcher<String> equalToCompressingSPACE(String expectedString) as an example.

Harlan1997 avatar Apr 25 '21 11:04 Harlan1997

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 avatar Feb 13 '22 12:02 nhojpatrick