1
0
forked from Mirror/wren
Files
wren/test/break/in_while_loop.wren
Bob Nystrom b979272305 Clean up text handling a bit:
- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00

13 lines
151 B
Plaintext

var i = 0
while (true) {
i = i + 1
IO.print(i)
if (i > 2) break
IO.print(i)
}
// expect: 1
// expect: 1
// expect: 2
// expect: 2
// expect: 3