summaryrefslogtreecommitdiff
path: root/spec/inputs/test/loops_spec.yue
diff options
context:
space:
mode:
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 }