JVM KT-47365 add box test

This commit is contained in:
Dmitry Petrov
2021-06-21 15:54:40 +03:00
committed by teamcityserver
parent 7535f142c0
commit c26d71c4ef
9 changed files with 63 additions and 0 deletions
@@ -42442,6 +42442,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@Test
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.kt");
}
@Test
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
+20
View File
@@ -0,0 +1,20 @@
// WITH_RUNTIME
enum class EType {
A
}
class Wrapper(var t: EType?)
fun box(): String {
val l = listOf(Wrapper(EType.A), Wrapper(null))
val ll = l.map {
when (it.t) {
EType.A -> "O"
null -> "K"
}
}
return ll[0] + ll[1]
}
@@ -42400,6 +42400,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@Test
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.kt");
}
@Test
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
@@ -42442,6 +42442,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@Test
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.kt");
}
@Test
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
@@ -34165,6 +34165,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.kt");
}
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
runTest("compiler/testData/codegen/box/when/kt5307.kt");
@@ -28515,6 +28515,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.kt");
}
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
runTest("compiler/testData/codegen/box/when/kt5307.kt");
@@ -27921,6 +27921,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.kt");
}
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
runTest("compiler/testData/codegen/box/when/kt5307.kt");
@@ -27881,6 +27881,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.kt");
}
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
runTest("compiler/testData/codegen/box/when/kt5307.kt");
@@ -15869,6 +15869,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/when/kt45081.kt");
}
@TestMetadata("kt47365.kt")
public void testKt47365() throws Exception {
runTest("compiler/testData/codegen/box/when/kt47365.kt");
}
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
runTest("compiler/testData/codegen/box/when/kt5307.kt");