summaryrefslogtreecommitdiff
path: root/spec/inputs/test/comprehension_spec.yue
blob: 5f24abaf5f3d46fde46edbdaa4b177d001786c47 (plain)
1
2
3
4
5
describe "comprehension", ->
	it "nested with filter", ->
		list = {1, 2, 3}
		out = ["#{i}-#{j}" for i in *list when i % 2 == 1 for j in *list when j > i]
		assert.same out, {"1-2", "1-3"}