Skip to content
Snippets Groups Projects
Commit 60632f12 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

assert that test input do not contain newlines

parent 7795adea
Branches
No related tags found
No related merge requests found
......@@ -654,6 +654,7 @@ public class TestBase {
* but can be overridden by providing a non-null {@code testIdOrNull}.
*/
protected static String expectedEval(String input, String testIdOrNull, String invokeMethodName) {
assert !input.contains("\n") : "test input cannot contain newlines - not supported by ExpectedTestOutput.test file format";
String testId = testIdOrNull == null ? input : testIdOrNull;
if (generatingExpected()) {
// generation mode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment