Rework tests on Number.toChar with custom Number subclass
Simplify them, move to a subfolder, add a couple of new tests.
This commit is contained in:
committed by
Space Team
parent
a64d8e8a31
commit
a962ec4553
Generated
+43
-15
@@ -22147,21 +22147,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customNumberInheritor.kt")
|
||||
public void testCustomNumberInheritor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customNumberInheritor_callToSuper.kt")
|
||||
public void testCustomNumberInheritor_callToSuper() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor_callToSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customNumberInheritor_interfaceInheritance.kt")
|
||||
public void testCustomNumberInheritor_interfaceInheritance() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor_interfaceInheritance.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ea35963.kt")
|
||||
public void testEa35963() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/ea35963.kt");
|
||||
@@ -22607,6 +22592,49 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NumberToChar extends AbstractIrCodegenBoxWasmTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("abstractMethodInSuperinterface.kt")
|
||||
public void testAbstractMethodInSuperinterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/abstractMethodInSuperinterface.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNumberToChar() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/numberToChar"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("fakeOverride.kt")
|
||||
public void testFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallToClass.kt")
|
||||
public void testSuperCallToClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallToInterface.kt")
|
||||
public void testSuperCallToInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallToNumber.kt")
|
||||
public void testSuperCallToNumber() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToNumber.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/private")
|
||||
|
||||
Reference in New Issue
Block a user