diff --git a/subprojects/generator/src/test/java/tools/refinery/generator/ProblemLoaderTest.java b/subprojects/generator/src/test/java/tools/refinery/generator/ProblemLoaderTest.java index 0c0db1056..f0b546d77 100644 --- a/subprojects/generator/src/test/java/tools/refinery/generator/ProblemLoaderTest.java +++ b/subprojects/generator/src/test/java/tools/refinery/generator/ProblemLoaderTest.java @@ -47,7 +47,9 @@ void loadScopeConstraintsTest(String originalScopes, List scopes, List loadScopeConstraintsTest() { diff --git a/subprojects/language-semantics/src/test/java/tools/refinery/language/semantics/SolutionSerializerTest.java b/subprojects/language-semantics/src/test/java/tools/refinery/language/semantics/SolutionSerializerTest.java index be675a802..9f36445ae 100644 --- a/subprojects/language-semantics/src/test/java/tools/refinery/language/semantics/SolutionSerializerTest.java +++ b/subprojects/language-semantics/src/test/java/tools/refinery/language/semantics/SolutionSerializerTest.java @@ -72,7 +72,9 @@ void solutionSerializerTest(String prefix, String input, String expectedOutput) solution.eResource().save(outputStream, Map.of()); actualOutput = outputStream.toString(); } - assertThat(actualOutput, is(prefix + "\n" + expectedOutput)); + var normalizedResult = actualOutput.replace("\r\n", "\n"); + var normalizedExpected = (prefix + "\n" + expectedOutput).replace("\r\n", "\n"); + assertThat(normalizedResult, is(normalizedExpected)); } static Stream solutionSerializerTest() {