moonscript/spec/loops_spec.moon
2013-06-30 21:47:45 -07:00

10 lines
176 B
Plaintext

describe "loops", ->
it "should continue", ->
input = {1,2,3,4,5,6}
output = for x in *input
continue if x % 2 == 1
x
assert.same output, { 2,4,6 }