diff options
Diffstat (limited to 'spec/inputs/loops.yue')
-rw-r--r-- | spec/inputs/loops.yue | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/inputs/loops.yue b/spec/inputs/loops.yue index 5708809..3191000 100644 --- a/spec/inputs/loops.yue +++ b/spec/inputs/loops.yue | |||
@@ -109,6 +109,22 @@ repeat | |||
109 | print a | 109 | print a |
110 | until a == 10 | 110 | until a == 10 |
111 | 111 | ||
112 | a = 3 | ||
113 | until a == 0 | ||
114 | a -= 1 | ||
115 | done = false | ||
116 | until done do done = true | ||
117 | repeat | ||
118 | print "hello" | ||
119 | until true | ||
120 | until done | ||
121 | x = 10 | ||
122 | repeat | ||
123 | x -= 1 | ||
124 | until x == 0 | ||
125 | until cond | ||
126 | print "okay" | ||
127 | |||
112 | for x=1,10 | 128 | for x=1,10 |
113 | continue if x > 3 and x < 7 | 129 | continue if x > 3 and x < 7 |
114 | print x | 130 | print x |