mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
moved the coffeescript extension over from .cs to .coffee -- let's leave C# in peace. Changed array comprehensions to always return their mapped result, even when unassigned
This commit is contained in:
11
test/fixtures/execution/test_switch.coffee
vendored
Normal file
11
test/fixtures/execution/test_switch.coffee
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
num: 10
|
||||
|
||||
result: switch num
|
||||
when 5 then false
|
||||
when 'a'
|
||||
false
|
||||
when 10 then true
|
||||
when 11 then false
|
||||
else false.
|
||||
|
||||
print(result)
|
||||
Reference in New Issue
Block a user