UNPKG

290 Btext/coffeescriptView Raw
1suite 'Comprehensions', ->
2
3 test 'comprehensions with no body produce `undefined` for each entry', ->
4 arrayEq (undefined for a in [0..9]), for b in [0..9] then
5
6 test '#66: `throw` as the final expression in the body of a comprehension', ->
7 (->) -> for a in [0..9] then throw {}