While loop implementation && first loop test

This commit is contained in:
Mikhail Glukhikh
2016-09-23 13:39:46 +03:00
committed by Dmitry Petrov
parent 979f2231a1
commit bcf2b410ba
4 changed files with 79 additions and 0 deletions
@@ -71,6 +71,21 @@ public class IrCfgTestCaseGenerated extends AbstractIrCfgTestCase {
doTest(fileName);
}
@TestMetadata("compiler/testData/ir/irCfg/loop")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Loop extends AbstractIrCfgTestCase {
public void testAllFilesPresentInLoop() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/ir/irCfg/loop"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("factorial.kt")
public void testFactorial() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irCfg/loop/factorial.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/ir/irCfg/when")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)