From 842eb67e173141b2777cc23033b94e20324ac4c2 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Thu, 25 May 2023 09:49:40 +0100 Subject: [PATCH] Normalise line endings in the SanitisedError test We could use the system line ending when printing the message, but this is fine too. --- .../java/dan200/computercraft/core/util/SanitisedErrorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/core/src/test/java/dan200/computercraft/core/util/SanitisedErrorTest.java b/projects/core/src/test/java/dan200/computercraft/core/util/SanitisedErrorTest.java index 76f585cfe..fd8c4ccf7 100644 --- a/projects/core/src/test/java/dan200/computercraft/core/util/SanitisedErrorTest.java +++ b/projects/core/src/test/java/dan200/computercraft/core/util/SanitisedErrorTest.java @@ -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); }