Files
wren/test/language/break/in_for_loop.wren

11 lines
151 B
Plaintext
Raw Normal View History

2013-12-24 21:04:11 -08:00
for (i in [1, 2, 3, 4, 5]) {
System.print(i)
2013-12-24 21:04:11 -08:00
if (i > 2) break
System.print(i)
2013-12-24 21:04:11 -08:00
}
// expect: 1
// expect: 1
// expect: 2
// expect: 2
// expect: 3