Add tests for obsolete issues (KT-42722, KT-39880)

This commit is contained in:
Victor Petukhov
2021-02-25 13:40:17 +03:00
parent 9492e75d38
commit 27846f4532
9 changed files with 96 additions and 0 deletions
@@ -25620,12 +25620,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt");
}
@Test
@TestMetadata("kt39880.kt")
public void testKt39880() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt");
}
@Test
@TestMetadata("kt4152.kt")
public void testKt4152() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt");
}
@Test
@TestMetadata("kt42722.kt")
public void testKt42722() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt");
}
@Test
@TestMetadata("kt44647.kt")
public void testKt44647() throws Exception {
@@ -0,0 +1,10 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WITH_RUNTIME
fun foo(fn: () -> Boolean) {}
fun box(): String {
foo { 1 in setOf("1") }
val a = 1 in setOf("1")
return "OK"
}
@@ -0,0 +1,10 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WITH_RUNTIME
fun box(): String {
val set = setOf<Int>(1, 2, 3, 4, 5)
println(0 in set)
println(1 in set)
println(null in set)
return "OK"
}
@@ -25620,12 +25620,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt");
}
@Test
@TestMetadata("kt39880.kt")
public void testKt39880() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt");
}
@Test
@TestMetadata("kt4152.kt")
public void testKt4152() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt");
}
@Test
@TestMetadata("kt42722.kt")
public void testKt42722() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt");
}
@Test
@TestMetadata("kt44647.kt")
public void testKt44647() throws Exception {
@@ -25620,12 +25620,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt");
}
@Test
@TestMetadata("kt39880.kt")
public void testKt39880() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt");
}
@Test
@TestMetadata("kt4152.kt")
public void testKt4152() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt");
}
@Test
@TestMetadata("kt42722.kt")
public void testKt42722() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt");
}
@Test
@TestMetadata("kt44647.kt")
public void testKt44647() throws Exception {
@@ -21793,11 +21793,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt");
}
@TestMetadata("kt39880.kt")
public void testKt39880() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt");
}
@TestMetadata("kt4152.kt")
public void testKt4152() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt");
}
@TestMetadata("kt42722.kt")
public void testKt42722() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt");
}
@TestMetadata("kt45022.kt")
public void testKt45022() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt45022.kt");
@@ -17278,11 +17278,21 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt");
}
@TestMetadata("kt39880.kt")
public void testKt39880() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt");
}
@TestMetadata("kt4152.kt")
public void testKt4152() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt");
}
@TestMetadata("kt42722.kt")
public void testKt42722() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt");
}
@TestMetadata("kt44647.kt")
public void testKt44647() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt44647.kt");
@@ -16763,11 +16763,21 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt");
}
@TestMetadata("kt39880.kt")
public void testKt39880() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt");
}
@TestMetadata("kt4152.kt")
public void testKt4152() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt");
}
@TestMetadata("kt42722.kt")
public void testKt42722() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt");
}
@TestMetadata("kt44647.kt")
public void testKt44647() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt44647.kt");
@@ -16828,11 +16828,21 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt");
}
@TestMetadata("kt39880.kt")
public void testKt39880() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt39880.kt");
}
@TestMetadata("kt4152.kt")
public void testKt4152() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt4152.kt");
}
@TestMetadata("kt42722.kt")
public void testKt42722() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt42722.kt");
}
@TestMetadata("kt44647.kt")
public void testKt44647() throws Exception {
runTest("compiler/testData/codegen/box/operatorConventions/kt44647.kt");