Files
wren/test/break/in_while_loop.wren
T

13 lines
151 B
Plaintext
Raw Normal View History

2013-12-24 10:15:50 -08:00
var i = 0
while (true) {
i = i + 1
2014-01-05 12:27:12 -08:00
IO.print(i)
2013-12-24 10:27:48 -08:00
if (i > 2) break
2014-01-05 12:27:12 -08:00
IO.print(i)
2013-12-24 10:15:50 -08:00
}
// expect: 1
// expect: 1
// expect: 2
// expect: 2
// expect: 3