mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 02:24:57 -05:00
adding a test for nested pattern matching
This commit is contained in:
@@ -13,6 +13,13 @@ func: ->
|
|||||||
ok func().join(' ') is '-1 -2'
|
ok func().join(' ') is '-1 -2'
|
||||||
|
|
||||||
|
|
||||||
|
noop: ->
|
||||||
|
|
||||||
|
noop [a,b]: [c,d]: [1,2]
|
||||||
|
|
||||||
|
ok a is 1 and b is 2
|
||||||
|
|
||||||
|
|
||||||
arr: [1, 2, 3]
|
arr: [1, 2, 3]
|
||||||
|
|
||||||
[a, b, c]: arr
|
[a, b, c]: arr
|
||||||
Reference in New Issue
Block a user