Files
wren/test/break/in_for_loop.wren
T

11 lines
143 B
Plaintext
Raw Normal View History

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