Add test for obsolete issue

#KT-23531 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2018-10-22 01:30:27 +03:00
parent 9dab32f67d
commit a97867ccb8
4 changed files with 75 additions and 0 deletions
@@ -9890,6 +9890,24 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
}
}
@TestMetadata("compiler/testData/diagnostics/tests/inference/recursiveCalls")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class RecursiveCalls extends AbstractDiagnosticsTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInRecursiveCalls() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/recursiveCalls"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("kt23531.kt")
public void testKt23531() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/recursiveCalls/kt23531.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/tests/inference/recursiveLocalFuns")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)