aboutsummaryrefslogtreecommitdiffstats
path: root/tests/loops.bad
diff options
context:
space:
mode:
Diffstat (limited to 'tests/loops.bad')
-rw-r--r--tests/loops.bad8
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.
2while (true) "heelo" 2while true "heelo"
3 3
4while (1 + 2 == 3) { 4while 1 + 2 == 3 {
5 "hello" 5 "hello"
6} 6}
7 7
8let a = true 8let a = true
9while (a) { 9while 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.
14let i = 0 14let i = 0
15while (i < 10) { 15while i < 10 {
16 "hello" 16 "hello"
17 ; --i 17 ; --i
18} 18}