failing test for 'for ... in' on array
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
fun concat(l: Array<String>): String {
|
||||
val sb = new StringBuilder()
|
||||
for(s in l) {
|
||||
sb.append(s)
|
||||
}
|
||||
s.toString()
|
||||
}
|
||||
@@ -77,4 +77,11 @@ public class ControlStructuresTest extends CodegenTestCase {
|
||||
List<String> args = Arrays.asList("IntelliJ", " ", "IDEA");
|
||||
assertEquals("IntelliJ IDEA", main.invoke(args));
|
||||
}
|
||||
|
||||
public void testForInArray() throws Exception {
|
||||
loadFile("forInArray.jet");
|
||||
final Method main = generateFunction();
|
||||
String[] args = new String[] { "IntelliJ", " ", "IDEA" };
|
||||
assertEquals("IntelliJ IDEA", main.invoke(args));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user