Files
wren/test/language/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]) {
2014-01-05 12:27:12 -08:00
IO.print(i)
2013-12-24 21:04:11 -08:00
if (i > 2) break
2014-01-05 12:27:12 -08:00
IO.print(i)
2013-12-24 21:04:11 -08:00
}
// expect: 1
// expect: 1
// expect: 2
// expect: 2
// expect: 3