Skip to content

Commit bc2dee7

Browse files
committed
continue spec
1 parent f04af88 commit bc2dee7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/loops_spec.moon

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
describe "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 }

0 commit comments

Comments
 (0)