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
+52
-18
@@ -35293,24 +35293,6 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
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
|
@Test
|
||||||
@TestMetadata("ea35963.kt")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
public void testEa35963() throws Exception {
|
||||||
@@ -35858,6 +35840,58 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@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.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("fakeOverride.kt")
|
||||||
|
public void testFakeOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("javaSubclass.kt")
|
||||||
|
public void testJavaSubclass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/javaSubclass.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
|
@Nested
|
||||||
|
|||||||
+52
-18
@@ -35293,24 +35293,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
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
|
@Test
|
||||||
@TestMetadata("ea35963.kt")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
public void testEa35963() throws Exception {
|
||||||
@@ -35858,6 +35840,58 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@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.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("fakeOverride.kt")
|
||||||
|
public void testFakeOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("javaSubclass.kt")
|
||||||
|
public void testJavaSubclass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/javaSubclass.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
|
@Nested
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
|
||||||
// DONT_TARGET_EXACT_BACKEND: JS
|
|
||||||
// IGNORE_BACKEND: JVM_IR, JS_IR
|
|
||||||
// KT-46465
|
|
||||||
// WITH_STDLIB
|
|
||||||
|
|
||||||
class MyNumber(val b: Boolean) : Number() {
|
|
||||||
override fun toByte(): Byte {
|
|
||||||
return toInt().toByte()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toDouble(): Double {
|
|
||||||
return toInt().toDouble()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toFloat(): Float {
|
|
||||||
return toInt().toFloat()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toInt(): Int {
|
|
||||||
return if (b) { 'O'.code } else { 'K'.code }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toLong(): Long {
|
|
||||||
return toInt().toLong()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toShort(): Short {
|
|
||||||
return toInt().toShort()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
fun box(): String {
|
|
||||||
val o = MyNumber(true)
|
|
||||||
val k = MyNumber(false)
|
|
||||||
return "${o.toChar()}${k.toChar()}"
|
|
||||||
}
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
|
||||||
// DONT_TARGET_EXACT_BACKEND: JS
|
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// KT-46465
|
|
||||||
// WITH_STDLIB
|
|
||||||
|
|
||||||
class MyNumber(val b: Boolean) : Number() {
|
|
||||||
override fun toByte(): Byte {
|
|
||||||
return toInt().toByte()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toDouble(): Double {
|
|
||||||
return toInt().toDouble()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toFloat(): Float {
|
|
||||||
return toInt().toFloat()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toChar(): Char {
|
|
||||||
return super.toChar()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toInt(): Int {
|
|
||||||
return if (b) { 'O'.code } else { 'K'.code }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toLong(): Long {
|
|
||||||
return toInt().toLong()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toShort(): Short {
|
|
||||||
return toInt().toShort()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
fun box(): String {
|
|
||||||
val o = MyNumber(true)
|
|
||||||
val k = MyNumber(false)
|
|
||||||
return "${o.toChar()}${k.toChar()}"
|
|
||||||
}
|
|
||||||
-41
@@ -1,41 +0,0 @@
|
|||||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
|
||||||
// DONT_TARGET_EXACT_BACKEND: JS
|
|
||||||
// KT-46465
|
|
||||||
// WITH_STDLIB
|
|
||||||
|
|
||||||
interface Some {
|
|
||||||
fun toChar(): Char
|
|
||||||
}
|
|
||||||
|
|
||||||
class MyNumber(val b: Boolean) : Number() {
|
|
||||||
override fun toByte(): Byte {
|
|
||||||
return toInt().toByte()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toDouble(): Double {
|
|
||||||
return toInt().toDouble()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toFloat(): Float {
|
|
||||||
return toInt().toFloat()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toInt(): Int {
|
|
||||||
return if (b) { 'O'.code } else { 'K'.code }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toLong(): Long {
|
|
||||||
return toInt().toLong()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun toShort(): Short {
|
|
||||||
return toInt().toShort()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
fun box(): String {
|
|
||||||
val o = MyNumber(true)
|
|
||||||
val k = MyNumber(false)
|
|
||||||
return "${o.toChar()}${k.toChar()}"
|
|
||||||
}
|
|
||||||
Vendored
+24
@@ -0,0 +1,24 @@
|
|||||||
|
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||||
|
// DONT_TARGET_EXACT_BACKEND: JS
|
||||||
|
// IGNORE_BACKEND: JS_IR, JS_IR_ES6
|
||||||
|
// ISSUE: KT-46465
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
interface Some {
|
||||||
|
fun toChar(): Char
|
||||||
|
}
|
||||||
|
|
||||||
|
class MyNumber(val value: Int) : Number(), Some {
|
||||||
|
override fun toInt(): Int = value
|
||||||
|
|
||||||
|
override fun toByte(): Byte = toInt().toByte()
|
||||||
|
override fun toDouble(): Double = toInt().toDouble()
|
||||||
|
override fun toFloat(): Float = toInt().toFloat()
|
||||||
|
override fun toLong(): Long = toInt().toLong()
|
||||||
|
override fun toShort(): Short = toInt().toShort()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val x = MyNumber('*'.code).toChar()
|
||||||
|
return if (x == '*') "OK" else "Fail: $x"
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||||
|
// DONT_TARGET_EXACT_BACKEND: JS
|
||||||
|
// ISSUE: KT-46465
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
open class MyNumber(val value: Int) : Number() {
|
||||||
|
override fun toChar(): Char = '+'
|
||||||
|
override fun toInt(): Int = value
|
||||||
|
|
||||||
|
override fun toByte(): Byte = toInt().toByte()
|
||||||
|
override fun toDouble(): Double = toInt().toDouble()
|
||||||
|
override fun toFloat(): Float = toInt().toFloat()
|
||||||
|
override fun toLong(): Long = toInt().toLong()
|
||||||
|
override fun toShort(): Short = toInt().toShort()
|
||||||
|
}
|
||||||
|
|
||||||
|
class MyNumberImpl(value: Int) : MyNumber(value)
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val x = MyNumberImpl('*'.code).toChar()
|
||||||
|
return if (x == '+') "OK" else "Fail: $x"
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// ISSUE: KT-23447
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
// FILE: MyNumber.java
|
||||||
|
|
||||||
|
public class MyNumber extends Number {
|
||||||
|
private final int value;
|
||||||
|
|
||||||
|
public MyNumber(int value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int intValue() { return value; }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long longValue() { return 0; }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float floatValue() { return 0; }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double doubleValue() { return 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: box.kt
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val x = MyNumber('*'.code).toChar()
|
||||||
|
if (x != '*') return "Fail 1: $x"
|
||||||
|
|
||||||
|
val y = java.lang.Integer('+'.code).toChar()
|
||||||
|
if (y != '+') return "Fail 2: $y"
|
||||||
|
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||||
|
// DONT_TARGET_EXACT_BACKEND: JS
|
||||||
|
// IGNORE_BACKEND: JS_IR, JS_IR_ES6
|
||||||
|
// ISSUE: KT-46465
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
class MyNumber(val value: Int) : Number() {
|
||||||
|
override fun toInt(): Int = value
|
||||||
|
|
||||||
|
override fun toByte(): Byte = toInt().toByte()
|
||||||
|
override fun toDouble(): Double = toInt().toDouble()
|
||||||
|
override fun toFloat(): Float = toInt().toFloat()
|
||||||
|
override fun toLong(): Long = toInt().toLong()
|
||||||
|
override fun toShort(): Short = toInt().toShort()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val x = MyNumber('*'.code).toChar()
|
||||||
|
return if (x == '*') "OK" else "Fail: $x"
|
||||||
|
}
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||||
|
// DONT_TARGET_EXACT_BACKEND: JS
|
||||||
|
// ISSUE: KT-46465
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
open class MyNumber(val value: Int) : Number() {
|
||||||
|
override fun toChar(): Char = '+'
|
||||||
|
override fun toInt(): Int = value
|
||||||
|
|
||||||
|
override fun toByte(): Byte = toInt().toByte()
|
||||||
|
override fun toDouble(): Double = toInt().toDouble()
|
||||||
|
override fun toFloat(): Float = toInt().toFloat()
|
||||||
|
override fun toLong(): Long = toInt().toLong()
|
||||||
|
override fun toShort(): Short = toInt().toShort()
|
||||||
|
}
|
||||||
|
|
||||||
|
class MyNumberImpl(value: Int) : MyNumber(value) {
|
||||||
|
override fun toChar(): Char = super.toChar()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val x = MyNumberImpl('*'.code).toChar()
|
||||||
|
return if (x == '+') "OK" else "Fail: $x"
|
||||||
|
}
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||||
|
// DONT_TARGET_EXACT_BACKEND: JS
|
||||||
|
// ISSUE: KT-46465
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
interface Some {
|
||||||
|
fun toChar(): Char = '+'
|
||||||
|
}
|
||||||
|
|
||||||
|
class MyNumber(val value: Int) : Number(), Some {
|
||||||
|
override fun toChar(): Char = super<Some>.toChar()
|
||||||
|
override fun toInt(): Int = value
|
||||||
|
|
||||||
|
override fun toByte(): Byte = toInt().toByte()
|
||||||
|
override fun toDouble(): Double = toInt().toDouble()
|
||||||
|
override fun toFloat(): Float = toInt().toFloat()
|
||||||
|
override fun toLong(): Long = toInt().toLong()
|
||||||
|
override fun toShort(): Short = toInt().toShort()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val x = MyNumber('*'.code).toChar()
|
||||||
|
return if (x == '+') "OK" else "Fail: $x"
|
||||||
|
}
|
||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||||
|
// DONT_TARGET_EXACT_BACKEND: JS
|
||||||
|
// IGNORE_BACKEND: JS_IR, JS_IR_ES6
|
||||||
|
// ISSUE: KT-46465
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
class MyNumber(val value: Int) : Number() {
|
||||||
|
override fun toChar(): Char = super.toChar()
|
||||||
|
override fun toInt(): Int = value
|
||||||
|
|
||||||
|
override fun toByte(): Byte = toInt().toByte()
|
||||||
|
override fun toDouble(): Double = toInt().toDouble()
|
||||||
|
override fun toFloat(): Float = toInt().toFloat()
|
||||||
|
override fun toLong(): Long = toInt().toLong()
|
||||||
|
override fun toShort(): Short = toInt().toShort()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val x = MyNumber('*'.code).toChar()
|
||||||
|
return if (x == '*') "OK" else "Fail: $x"
|
||||||
|
}
|
||||||
+10
@@ -34430,6 +34430,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@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.JVM, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+52
-18
@@ -35293,24 +35293,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
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
|
@Test
|
||||||
@TestMetadata("ea35963.kt")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
public void testEa35963() throws Exception {
|
||||||
@@ -35858,6 +35840,58 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@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.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("fakeOverride.kt")
|
||||||
|
public void testFakeOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("javaSubclass.kt")
|
||||||
|
public void testJavaSubclass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/javaSubclass.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
|
@Nested
|
||||||
|
|||||||
+52
@@ -35840,6 +35840,58 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@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.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("fakeOverride.kt")
|
||||||
|
public void testFakeOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/fakeOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("javaSubclass.kt")
|
||||||
|
public void testJavaSubclass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/primitiveTypes/numberToChar/javaSubclass.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
|
@Nested
|
||||||
|
|||||||
+13
@@ -29379,6 +29379,19 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("compiler/testData/codegen/box/primitiveTypes/numberToChar")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class NumberToChar extends AbstractLightAnalysisModeTest {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInNumberToChar() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/primitiveTypes/numberToChar"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/testData/codegen/box/private")
|
@TestMetadata("compiler/testData/codegen/box/private")
|
||||||
|
|||||||
+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
|
@Nested
|
||||||
|
|||||||
+46
-18
@@ -24849,24 +24849,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/crossTypeEquals.kt");
|
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
|
@Test
|
||||||
@TestMetadata("ea35963.kt")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
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
|
@Nested
|
||||||
|
|||||||
+46
-18
@@ -24849,24 +24849,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/crossTypeEquals.kt");
|
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
|
@Test
|
||||||
@TestMetadata("ea35963.kt")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
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
|
@Nested
|
||||||
|
|||||||
+46
-18
@@ -24849,24 +24849,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/crossTypeEquals.kt");
|
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
|
@Test
|
||||||
@TestMetadata("ea35963.kt")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
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
|
@Nested
|
||||||
|
|||||||
+50
-18
@@ -28349,24 +28349,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
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
|
@Test
|
||||||
@TestMetadata("ea35963.kt")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
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
|
@Nested
|
||||||
|
|||||||
+49
-18
@@ -28026,24 +28026,6 @@ public class K1NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
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
|
@Test
|
||||||
@TestMetadata("ea35963.kt")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
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
|
@Nested
|
||||||
|
|||||||
Generated
+43
-15
@@ -22147,21 +22147,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
|||||||
runTest("compiler/testData/codegen/box/primitiveTypes/conversions.kt");
|
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")
|
@TestMetadata("ea35963.kt")
|
||||||
public void testEa35963() throws Exception {
|
public void testEa35963() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/primitiveTypes/ea35963.kt");
|
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")
|
@TestMetadata("compiler/testData/codegen/box/private")
|
||||||
|
|||||||
Reference in New Issue
Block a user