mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-14 19:25:43 +00:00
Normalise line endings in the SanitisedError test
We could use the system line ending when printing the message, but this is fine too.
This commit is contained in:
parent
ebed357f05
commit
842eb67e17
@ -22,7 +22,7 @@ class SanitisedErrorTest {
|
|||||||
try (var printWriter = new PrintWriter(writer)) {
|
try (var printWriter = new PrintWriter(writer)) {
|
||||||
t.printStackTrace(printWriter);
|
t.printStackTrace(printWriter);
|
||||||
}
|
}
|
||||||
var actualOutput = writer.toString();
|
var actualOutput = writer.toString().replace("\r\n", "\n");
|
||||||
|
|
||||||
assertEquals(actualOutput, truncatedOutput);
|
assertEquals(actualOutput, truncatedOutput);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user