Commit 17cfa363 authored by Alexander's avatar Alexander
Browse files

Update tests and TestBase

parent 5c0d1a6f
......@@ -445,7 +445,9 @@ public abstract class TestBase {
if (output.startsWith(errorPrefix)) {
return new TestPair(input, TestPair.Type.CHECK_FOR_ERROR);
} else {
String start = output.split(startsWithPostfix)[0];
String[] split = output.split(startsWithPostfix);
assert split.length >= 1 : "Check your .io file for the test. There is a line only containing ...";
String start = split[0];
return new TestPair(input, start, TestPair.Type.CHECK_STARTS_WITH);
}
}
......
Supports Markdown
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