aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/loops.yue
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/loops.yue')
-rw-r--r--spec/inputs/loops.yue8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/inputs/loops.yue b/spec/inputs/loops.yue
index 3191000..d03e661 100644
--- a/spec/inputs/loops.yue
+++ b/spec/inputs/loops.yue
@@ -109,6 +109,14 @@ repeat
109 print a 109 print a
110until a == 10 110until a == 10
111 111
112x = 0
113repeat
114 x += 1
115 y = x
116 continue if x < 5
117 print y
118until y == 10
119
112a = 3 120a = 3
113until a == 0 121until a == 0
114 a -= 1 122 a -= 1