Commit 41fb22da authored by 0xJMR's avatar 0xJMR
Browse files

Second shot at fixing tests for Linux.

parent 5d0806ea
Pipeline #69017 failed with stages
in 1 minute and 57 seconds
......@@ -47,10 +47,8 @@ public class HTMLMathPrettyPrinterTest {
Optional<ASTMathCompilationUnit> astOptional = parser.parse(sourceModel.toString());
String input = FileUtils.readFileToString(targetModel, "UTF-8");
String output = printer.prettyPrint(astOptional.get());
String separator = System.lineSeparator();
assertEquals(StringUtils.countMatches(input, separator), StringUtils.countMatches(output, separator));
assertEquals(input.replaceAll("\\R", ""), output.replaceAll("\\R", ""));
assertEquals(input.replaceAll("\\R", "\n"), output.replaceAll("\\R", "\n"));
}
}
}
......@@ -48,10 +48,8 @@ public class MathPrettyPrinterTest {
Optional<ASTMathCompilationUnit> astOptional = parser.parse(sourceModel.toString());
String input = FileUtils.readFileToString(targetModel, "UTF-8");
String output = printer.prettyPrint(astOptional.get());
String separator = System.lineSeparator();
assertEquals(StringUtils.countMatches(input, separator), StringUtils.countMatches(output, separator));
assertEquals(input.replaceAll("\\R", ""), output.replaceAll("\\R", ""));
assertEquals(input.replaceAll("\\R", "\n"), output.replaceAll("\\R", "\n"));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment