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:
parent
6f81ac3684
commit
ad3b887df4
3 changed files with 19 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue