Conversation
|
Thanks! Always tricky to test these platform-specifics. That said, I think the best would be to add a |
|
Oh interesting! You mean that the source code would have CFLF pairs in it, and therefore the string compare would match? Great idea! |
|
Yes exactly; this should make sure that all line endings are always consistently those of the current platform, \r\n on Windows, \n on Linux, etc. It's more of an oversight that I didn't add the .gitattributes file from the beginning (also logged this for the oss-quickstart archetype which I used for setting up this project). |
|
I now have my source file using dos newlines, but the text blocks are still using |
|
@prdoyle, so after thinking some more about this, I think the most idiomatic way for solving this issue would be using AssertJ's support for custom comparators:
|
Fixes #6.
Not sure whether this is the direction you want to go.