mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
one more range comprehension vs range literal test, for thoroughness.
This commit is contained in:
@@ -43,6 +43,7 @@ ok results.join(' ') is '0 5 10 15 20 25'
|
|||||||
results: x for x in [5..1] by -1
|
results: x for x in [5..1] by -1
|
||||||
|
|
||||||
ok results.join(' ') is '5 4 3 2 1'
|
ok results.join(' ') is '5 4 3 2 1'
|
||||||
|
ok results.join(' ') is [(10-5)..(-2+3)].join(' ')
|
||||||
|
|
||||||
|
|
||||||
# Multiline array comprehension with filter.
|
# Multiline array comprehension with filter.
|
||||||
|
|||||||
Reference in New Issue
Block a user