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");
|
||||
}
|
||||
|
||||
@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
|
||||
@TestMetadata("try.kt")
|
||||
public void testTry() throws Exception {
|
||||
|
||||
-12
@@ -10060,18 +10060,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
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
|
||||
@TestMetadata("try.kt")
|
||||
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");
|
||||
}
|
||||
|
||||
@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
|
||||
@TestMetadata("try.kt")
|
||||
public void testTry() throws Exception {
|
||||
|
||||
-12
@@ -10060,18 +10060,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
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
|
||||
@TestMetadata("try.kt")
|
||||
public void testTry() throws Exception {
|
||||
|
||||
-12
@@ -10060,18 +10060,6 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
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
|
||||
@TestMetadata("try.kt")
|
||||
public void testTry() throws Exception {
|
||||
|
||||
-10
@@ -7913,16 +7913,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
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")
|
||||
public void testTry() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt");
|
||||
|
||||
Reference in New Issue
Block a user