mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
adding a pattern-matching-on-expression test
This commit is contained in:
parent
92688c89ef
commit
69911209ea
1 changed files with 7 additions and 1 deletions
|
@ -73,3 +73,9 @@ test: {
|
|||
{person: {address: [ignore, addr...]}}: test
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue