Fix failing tests

parent 5989d5a3
Pipeline #176331 passed with stages
in 28 minutes and 52 seconds
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -58,7 +58,9 @@ public class AbstractSymtabTest extends AbstractSymtab {
return false;
}
lines1 = discardEmptyLines(lines1);
lines1 = discardCopyrightNotice(lines1);
lines2 = discardEmptyLines(lines2);
lines2 = discardCopyrightNotice(lines2);
if (lines1.size() != lines2.size()) {
Assert.fail(
"files have different number of lines: "
......@@ -83,6 +85,14 @@ public class AbstractSymtabTest extends AbstractSymtab {
return true;
}
private static List<String> discardCopyrightNotice(List<String> lines) {
return lines
.stream()
.filter(s -> !s.contains("(c) https://github.com/MontiCore/monticore"))
.collect(Collectors.toList());
}
private static List<String> discardEmptyLines(List<String> lines) {
return lines.stream()
.map(String::trim)
......
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