JVM KT-49548 extra test
This commit is contained in:
committed by
TeamCityServer
parent
9a4cff0dc7
commit
76bdf4ff1a
+6
@@ -1908,6 +1908,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49548a.kt")
|
||||
public void testKt49548a() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5493.kt")
|
||||
public void testKt5493() throws Exception {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val p0 = 0..3
|
||||
|
||||
fun test(): List<Int> {
|
||||
val progression = if (p0.last != 3) p0 else p0 + 1
|
||||
return progression.map { it }
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val t = test()
|
||||
if (t != listOf(0, 1, 2, 3, 1))
|
||||
return "Failed: t=$t"
|
||||
return "OK"
|
||||
}
|
||||
+6
@@ -1836,6 +1836,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49548a.kt")
|
||||
public void testKt49548a() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5493.kt")
|
||||
public void testKt5493() throws Exception {
|
||||
|
||||
+6
@@ -1908,6 +1908,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49548a.kt")
|
||||
public void testKt49548a() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5493.kt")
|
||||
public void testKt5493() throws Exception {
|
||||
|
||||
+5
@@ -1623,6 +1623,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt49548a.kt")
|
||||
public void testKt49548a() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5493.kt")
|
||||
public void testKt5493() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt5493.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -1103,6 +1103,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt49548a.kt")
|
||||
public void testKt49548a() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5493.kt")
|
||||
public void testKt5493() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt5493.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -1103,6 +1103,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt49548a.kt")
|
||||
public void testKt49548a() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5493.kt")
|
||||
public void testKt5493() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt5493.kt");
|
||||
|
||||
+6
@@ -1212,6 +1212,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49548a.kt")
|
||||
public void testKt49548a() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5493.kt")
|
||||
public void testKt5493() throws Exception {
|
||||
|
||||
+6
@@ -1170,6 +1170,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49548a.kt")
|
||||
public void testKt49548a() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/boxingOptimization/kt49548a.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5493.kt")
|
||||
public void testKt5493() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user