for loop on array works; fixes to ensure we don't leave junk on stack
This commit is contained in:
@@ -80,8 +80,9 @@ public class ControlStructuresTest extends CodegenTestCase {
|
||||
|
||||
public void testForInArray() throws Exception {
|
||||
loadFile("forInArray.jet");
|
||||
System.out.println(generateToText());
|
||||
final Method main = generateFunction();
|
||||
String[] args = new String[] { "IntelliJ", " ", "IDEA" };
|
||||
assertEquals("IntelliJ IDEA", main.invoke(args));
|
||||
assertEquals("IntelliJ IDEA", main.invoke(null, new Object[] { args }));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user