Merge K2 box tests to main box tests

This commit is contained in:
Alexander Udalov
2023-03-23 12:28:07 +01:00
committed by Space Team
parent 14c2030595
commit d3be38476a
32 changed files with 584 additions and 402 deletions
@@ -11334,6 +11334,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt");
}
@TestMetadata("k54079.kt")
public void testK54079() throws Exception {
runTest("compiler/testData/codegen/box/enum/k54079.kt");
}
@TestMetadata("kt1119.kt")
public void testKt1119() throws Exception {
runTest("compiler/testData/codegen/box/enum/kt1119.kt");
@@ -23087,6 +23092,19 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/properties/unreachableUninitializedProperty.kt");
}
@TestMetadata("compiler/testData/codegen/box/properties/backingField")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class BackingField extends AbstractIrCodegenBoxWasmTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
}
public void testAllFilesPresentInBackingField() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties/backingField"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
}
@TestMetadata("compiler/testData/codegen/box/properties/const")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)