continue spec

This commit is contained in:
leaf corcoran 2013-06-30 21:47:45 -07:00
parent f04af88a8d
commit bc2dee76b5

9
spec/loops_spec.moon Normal file
View File

@ -0,0 +1,9 @@
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 }