reorganizing test fixtures and adding range literals for array slices

This commit is contained in:
Jeremy Ashkenas
2009-12-25 16:20:28 -08:00
parent 62485c2b8c
commit 1ba7c77136
21 changed files with 46 additions and 22 deletions

View 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')