aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/test/loops_spec.yue
blob: 16531ef8d5fad08e4ef7708444ccb63bdf7f059c (plain)
1
2
3
4
5
6
7
8
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 }