REPL: improve "are all errors at EOF" detection
Also ignore whitespaces and comments that appear after the last error in a REPL line #KT-15172 Fixed
This commit is contained in:
@@ -281,6 +281,12 @@ public class ReplInterpreterTestGenerated extends AbstractReplInterpreterTest {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/repl/multiline"), Pattern.compile("^(.+)\\.repl$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("blankLinesAndComments.repl")
|
||||
public void testBlankLinesAndComments() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/repl/multiline/blankLinesAndComments.repl");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("functionOnSeveralLines.repl")
|
||||
public void testFunctionOnSeveralLines() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/repl/multiline/functionOnSeveralLines.repl");
|
||||
|
||||
Reference in New Issue
Block a user