1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

lots of tweaks make the tests pass again

This commit is contained in:
Jeremy Ashkenas 2009-12-18 23:13:59 -05:00
parent 6f81ac3684
commit ad3b887df4
3 changed files with 19 additions and 14 deletions

View file

@ -109,9 +109,9 @@ change_a_and_set_b: =>
b: 20
# Array comprehensions.
supper: [food.capitalize() for food in ['toast', 'cheese', 'wine']]
supper: food.capitalize() for food in ['toast', 'cheese', 'wine'].
[drink(bottle) for bottle, i in ['soda', 'wine', 'lemonade'] if even(i)]
drink(bottle) for bottle, i in ['soda', 'wine', 'lemonade'] if even(i).
# Switch statements ("else" serves as a default).
switch day