aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-09-13 22:31:31 +0800
committerLi Jin <dragon-fly@qq.com>2022-09-13 22:31:31 +0800
commitcb1fbac9223cc62739aa5c7bb97cba6e9dbd87c0 (patch)
treecd08fb8a717a4fb31bc800761652eec95171c0da /spec/inputs
parent27b7211e74d5677fbf5c5212264d32c7bfaffc20 (diff)
downloadyuescript-cb1fbac9223cc62739aa5c7bb97cba6e9dbd87c0.tar.gz
yuescript-cb1fbac9223cc62739aa5c7bb97cba6e9dbd87c0.tar.bz2
yuescript-cb1fbac9223cc62739aa5c7bb97cba6e9dbd87c0.zip
fix readme.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/test/loops_spec.yue15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/inputs/test/loops_spec.yue b/spec/inputs/test/loops_spec.yue
index 16531ef..817919f 100644
--- a/spec/inputs/test/loops_spec.yue
+++ b/spec/inputs/test/loops_spec.yue
@@ -6,3 +6,18 @@ describe "loops", ->
6 x 6 x
7 7
8 assert.same output, { 2,4,6 } 8 assert.same output, { 2,4,6 }
9
10 it "continue in repeat", ->
11 output = {}
12 a = 0
13 repeat
14 a += 1
15 if a == 3
16 continue
17 if a == 5
18 break
19 output[] = a
20 until a == 8
21
22 assert.same output, { 1,2,4 }
23