Add test on incomplete code in MPP

Currently, the behavior is undesired. See the next commit for the fix

^KT-28385 In Progress
This commit is contained in:
Dmitry Savvinov
2018-11-22 18:56:02 +03:00
parent a35f368ce0
commit 415fcf70e9
4 changed files with 217 additions and 0 deletions
@@ -681,6 +681,11 @@ public class MultiPlatformIntegrationTestGenerated extends AbstractMultiPlatform
runTest("compiler/testData/multiplatform/regressions/kt17001/");
}
@TestMetadata("kt28385")
public void testKt28385() throws Exception {
runTest("compiler/testData/multiplatform/regressions/kt28385/");
}
@TestMetadata("compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -706,6 +711,19 @@ public class MultiPlatformIntegrationTestGenerated extends AbstractMultiPlatform
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/multiplatform/regressions/kt17001"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, true);
}
}
@TestMetadata("compiler/testData/multiplatform/regressions/kt28385")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Kt28385 extends AbstractMultiPlatformIntegrationTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInKt28385() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/multiplatform/regressions/kt28385"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, true);
}
}
}
@TestMetadata("compiler/testData/multiplatform/simple")