mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 01:07:55 -05:00
adding a pattern-matching-on-expression test
This commit is contained in:
@@ -72,4 +72,10 @@ test: {
|
||||
|
||||
{person: {address: [ignore, addr...]}}: test
|
||||
|
||||
ok addr.join(', ') is "Street 101, Apt 101, City 101"
|
||||
ok addr.join(', ') is "Street 101, Apt 101, City 101"
|
||||
|
||||
|
||||
[a, b]: if true then [2, 1] else [1, 2]
|
||||
|
||||
ok a is 2
|
||||
ok b is 1
|
||||
|
||||
Reference in New Issue
Block a user