one more range comprehension vs range literal test, for thoroughness.

This commit is contained in:
Jeremy Ashkenas
2010-05-31 19:43:30 -04:00
parent 8cdd8de360
commit 47fdcebb01

View File

@@ -43,6 +43,7 @@ ok results.join(' ') is '0 5 10 15 20 25'
results: x for x in [5..1] by -1
ok results.join(' ') is '5 4 3 2 1'
ok results.join(' ') is [(10-5)..(-2+3)].join(' ')
# Multiline array comprehension with filter.