mirror of
https://github.com/leafo/moonscript.git
synced 2024-12-08 01:54:24 +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 }
|