Use generic invokeFunction() instead of ad-hoc one for in-range conditions in when

This commit is contained in:
Andrey Breslav
2012-08-22 17:07:52 +04:00
parent 08e3da6769
commit 0cc27c0176
3 changed files with 26 additions and 12 deletions
@@ -64,6 +64,11 @@ public class ControlStructuresTest extends CodegenTestCase {
factorialTest("controlStructures/break.jet");
}
public void testInRangeConditionsInWhen() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("controlStructures/inRangeConditionsInWhen.jet");
}
private void factorialTest(final String name) throws IllegalAccessException, InvocationTargetException {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
loadFile(name);