mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
10 lines
176 B
Plaintext
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 }
|