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
+10
@@ -25258,6 +25258,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class NumberToChar {
|
||||
@Test
|
||||
public void testAllFilesPresentInNumberToChar() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/numberToChar"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+46
-18
@@ -24849,24 +24849,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/crossTypeEquals.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 {
|
||||
@@ -25390,6 +25372,52 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JS_IR, 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
|
||||
|
||||
+46
-18
@@ -24849,24 +24849,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/crossTypeEquals.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 {
|
||||
@@ -25390,6 +25372,52 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JS_IR, 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
|
||||
|
||||
+46
-18
@@ -24849,24 +24849,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/crossTypeEquals.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 {
|
||||
@@ -25390,6 +25372,52 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
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.JS_IR_ES6, 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