Use generic invokeFunction() instead of ad-hoc one for in-range conditions in when
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user