mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
reorganizing test fixtures and adding range literals for array slices
This commit is contained in:
4
test/fixtures/execution/test_array_comprehension.coffee
vendored
Normal file
4
test/fixtures/execution/test_array_comprehension.coffee
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
nums: n * n for n in [1, 2, 3] if n % 2 isnt 0.
|
||||
result: n * 2 for n in nums.
|
||||
|
||||
print(result.join(',') is '2,18')
|
||||
Reference in New Issue
Block a user