summaryrefslogtreecommitdiff
path: root/spec/inputs/test/loops_spec.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-05-24 10:06:53 +0800
committerLi Jin <dragon-fly@qq.com>2022-05-24 10:06:53 +0800
commit30a11b0023ad1bc59662d1ead279ba92f6f57cdc (patch)
tree0a871f2eb1819a2689ea931a0a07004be909465c /spec/inputs/test/loops_spec.yue
parentac2f4ff4cdd3286ecaf31aec47d9d8aadfa75b0f (diff)
downloadyuescript-0.10.23.tar.gz
yuescript-0.10.23.tar.bz2
yuescript-0.10.23.zip
add favicon and tests.v0.10.23
Diffstat (limited to 'spec/inputs/test/loops_spec.yue')
-rw-r--r--spec/inputs/test/loops_spec.yue9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/inputs/test/loops_spec.yue b/spec/inputs/test/loops_spec.yue
new file mode 100644
index 0000000..68b5f97
--- /dev/null
+++ b/spec/inputs/test/loops_spec.yue
@@ -0,0 +1,9 @@
1
2describe "loops", ->
3 it "should continue", ->
4 input = {1,2,3,4,5,6}
5 output = for x in *input
6 continue if x % 2 == 1
7 x
8
9 assert.same output, { 2,4,6 }