1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-25 19:07:39 +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:
Jonathan Coates
2023-05-25 09:49:40 +01:00
parent ebed357f05
commit 842eb67e17

View File

@@ -22,7 +22,7 @@ class SanitisedErrorTest {
try (var printWriter = new PrintWriter(writer)) {
t.printStackTrace(printWriter);
}
var actualOutput = writer.toString();
var actualOutput = writer.toString().replace("\r\n", "\n");
assertEquals(actualOutput, truncatedOutput);
}