diff options
Diffstat (limited to 'tests/loops.bad')
-rw-r--r-- | tests/loops.bad | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/loops.bad b/tests/loops.bad index d42716f..a068ed0 100644 --- a/tests/loops.bad +++ b/tests/loops.bad | |||
@@ -1,18 +1,18 @@ | |||
1 | ; The most basic loop is the while loop. | 1 | ; The most basic loop is the while loop. |
2 | while (true) "heelo" | 2 | while true "heelo" |
3 | 3 | ||
4 | while (1 + 2 == 3) { | 4 | while 1 + 2 == 3 { |
5 | "hello" | 5 | "hello" |
6 | } | 6 | } |
7 | 7 | ||
8 | let a = true | 8 | let a = true |
9 | while (a) { | 9 | while a { |
10 | "hello" | 10 | "hello" |
11 | } | 11 | } |
12 | 12 | ||
13 | ; We could use some sugar for this. | 13 | ; We could use some sugar for this. |
14 | let i = 0 | 14 | let i = 0 |
15 | while (i < 10) { | 15 | while i < 10 { |
16 | "hello" | 16 | "hello" |
17 | ; --i | 17 | ; --i |
18 | } | 18 | } |