Add BE tests for 'break' and 'continue' inside 'when'

This commit is contained in:
Dmitry Petrov
2019-09-10 15:56:23 +03:00
parent f06f6f4660
commit f3837e91e3
7 changed files with 142 additions and 0 deletions
@@ -3808,6 +3808,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/controlStructures/breakInFinally.kt");
}
@TestMetadata("breakInWhen.kt")
public void testBreakInWhen() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/breakInWhen.kt");
}
@TestMetadata("compareBoxedIntegerToZero.kt")
public void testCompareBoxedIntegerToZero() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/compareBoxedIntegerToZero.kt");
@@ -3833,6 +3838,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/controlStructures/continueInForCondition.kt");
}
@TestMetadata("continueInWhen.kt")
public void testContinueInWhen() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/continueInWhen.kt");
}
@TestMetadata("continueInWhile.kt")
public void testContinueInWhile() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/continueInWhile.kt");
@@ -3818,6 +3818,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/controlStructures/breakInFinally.kt");
}
@TestMetadata("breakInWhen.kt")
public void testBreakInWhen() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/breakInWhen.kt");
}
@TestMetadata("compareBoxedIntegerToZero.kt")
public void testCompareBoxedIntegerToZero() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/compareBoxedIntegerToZero.kt");
@@ -3843,6 +3848,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/controlStructures/continueInForCondition.kt");
}
@TestMetadata("continueInWhen.kt")
public void testContinueInWhen() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/continueInWhen.kt");
}
@TestMetadata("continueInWhile.kt")
public void testContinueInWhile() throws Exception {
runTest("compiler/testData/codegen/box/controlStructures/continueInWhile.kt");