Files
wren/test/break/in_for_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

11 lines
143 B
Plaintext

for (i in [1, 2, 3, 4, 5]) {
IO.print(i)
if (i > 2) break
IO.print(i)
}
// expect: 1
// expect: 1
// expect: 2
// expect: 2
// expect: 3