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
+50
-18
@@ -28349,24 +28349,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("customNumberInheritor.kt")
|
||||
public void testCustomNumberInheritor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("customNumberInheritor_callToSuper.kt")
|
||||
public void testCustomNumberInheritor_callToSuper() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor_callToSuper.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("customNumberInheritor_interfaceInheritance.kt")
|
||||
public void testCustomNumberInheritor_interfaceInheritance() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor_interfaceInheritance.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ea35963.kt")
|
||||
public void testEa35963() throws Exception {
|
||||
@@ -28898,6 +28880,56 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegenK2")
|
||||
@Tag("firCodegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@FirPipeline()
|
||||
public class NumberToChar {
|
||||
@Test
|
||||
@TestMetadata("abstractMethodInSuperinterface.kt")
|
||||
public void testAbstractMethodInSuperinterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/abstractMethodInSuperinterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInNumberToChar() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/numberToChar"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverride.kt")
|
||||
public void testFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallToClass.kt")
|
||||
public void testSuperCallToClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallToInterface.kt")
|
||||
public void testSuperCallToInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallToNumber.kt")
|
||||
public void testSuperCallToNumber() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToNumber.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+49
-18
@@ -28026,24 +28026,6 @@ public class K1NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("customNumberInheritor.kt")
|
||||
public void testCustomNumberInheritor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("customNumberInheritor_callToSuper.kt")
|
||||
public void testCustomNumberInheritor_callToSuper() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor_callToSuper.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("customNumberInheritor_interfaceInheritance.kt")
|
||||
public void testCustomNumberInheritor_interfaceInheritance() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/customNumberInheritor_interfaceInheritance.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ea35963.kt")
|
||||
public void testEa35963() throws Exception {
|
||||
@@ -28573,6 +28555,55 @@ public class K1NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@Tag("k1Codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class NumberToChar {
|
||||
@Test
|
||||
@TestMetadata("abstractMethodInSuperinterface.kt")
|
||||
public void testAbstractMethodInSuperinterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/abstractMethodInSuperinterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInNumberToChar() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/numberToChar"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverride.kt")
|
||||
public void testFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallToClass.kt")
|
||||
public void testSuperCallToClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallToInterface.kt")
|
||||
public void testSuperCallToInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallToNumber.kt")
|
||||
public void testSuperCallToNumber() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/superCallToNumber.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user