sbt-aspectj icon indicating copy to clipboard operation
sbt-aspectj copied to clipboard

Platform-specific tests in example projects

Open kriegaex opened this issue 3 years ago • 0 comments

Currently something like this is found in 6 different places in the code base:

val expected = "Printing sample:\nhello\n"

Those tests will all fail on Windows due to the different line separators. Please replace all occurrences by something like:

val LF = System.lineSeparator()
val expected = "Printing sample:" + LF + "hello" + LF

See also: https://stackoverflow.com/a/67427841/1082681

kriegaex avatar May 07 '21 01:05 kriegaex