aboutsummaryrefslogtreecommitdiff
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.yue13
1 files changed, 6 insertions, 7 deletions
diff --git a/spec/inputs/test/loops_spec.yue b/spec/inputs/test/loops_spec.yue
index 68b5f97..16531ef 100644
--- a/spec/inputs/test/loops_spec.yue
+++ b/spec/inputs/test/loops_spec.yue
@@ -1,9 +1,8 @@
1
2describe "loops", -> 1describe "loops", ->
3 it "should continue", -> 2 it "should continue", ->
4 input = {1,2,3,4,5,6} 3 input = {1,2,3,4,5,6}
5 output = for x in *input 4 output = for x in *input
6 continue if x % 2 == 1 5 continue if x % 2 == 1
7 x 6 x
8 7
9 assert.same output, { 2,4,6 } 8 assert.same output, { 2,4,6 }