Minor, remove extraneous box tests
These tests are already present in `compiler/testData/codegen/box/classes/kt496.kt`.
This commit is contained in:
committed by
Space Team
parent
e6c4a8957d
commit
5513740659
-12
@@ -10060,18 +10060,6 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -10060,18 +10060,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-11
@@ -1,11 +0,0 @@
|
|||||||
fun shouldReturnFalse() : Boolean {
|
|
||||||
try {
|
|
||||||
return true
|
|
||||||
} finally {
|
|
||||||
if (true)
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun box(): String =
|
|
||||||
if (shouldReturnFalse()) "Failed" else "OK"
|
|
||||||
-22
@@ -1,22 +0,0 @@
|
|||||||
fun shouldReturn11() : Int {
|
|
||||||
var x = 0
|
|
||||||
while (true) {
|
|
||||||
try {
|
|
||||||
if(x < 10)
|
|
||||||
x++
|
|
||||||
else
|
|
||||||
break
|
|
||||||
}
|
|
||||||
finally {
|
|
||||||
x++
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return x
|
|
||||||
}
|
|
||||||
|
|
||||||
fun box(): String {
|
|
||||||
val test = shouldReturn11()
|
|
||||||
if (test != 11) return "Failed, test=$test"
|
|
||||||
|
|
||||||
return "OK"
|
|
||||||
}
|
|
||||||
-12
@@ -9802,18 +9802,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -10060,18 +10060,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -10060,18 +10060,6 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-10
@@ -7913,16 +7913,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt");
|
||||||
|
|||||||
-12
@@ -6880,18 +6880,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -6880,18 +6880,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -6880,18 +6880,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -7725,18 +7725,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -7899,18 +7899,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -7639,18 +7639,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
-12
@@ -7726,18 +7726,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
Generated
-12
@@ -6856,18 +6856,6 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
Generated
-12
@@ -6856,18 +6856,6 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
|||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner1.kt")
|
|
||||||
public void testSplitTryCorner1() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("splitTryCorner2.kt")
|
|
||||||
public void testSplitTryCorner2() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("try.kt")
|
@TestMetadata("try.kt")
|
||||||
public void testTry() throws Exception {
|
public void testTry() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user