strikt
strikt copied to clipboard
Missing clue when comparing multiline strings
There is no useful clue when one line ends with an additional whitespace.
The test expectThat("\ntest \n").isEqualTo("\ntest\n") results in:
org.opentest4j.AssertionFailedError: ▼ Expect that "
|test
|":
✗ is equal to "
|test
|"
found "
|test
|"
Also the additional whitespace was eliminated on the console output which makes it more difficult to find the problem. It would be helpful to enhance the report like other tools do:
org.opentest4j.AssertionFailedError: expected:<"
test[]
"> but was:<"
test[ ]
">
Version: io.strikt:strikt-core:0.26.1