From eab9bbf04fc381406b5b64050d8079bb307d2449 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Thu, 25 Feb 2010 07:31:33 -0500 Subject: [PATCH] adding a test for nested pattern matching --- ...ring_assignment.coffee => test_pattern_matching.coffee} | 7 +++++++ 1 file changed, 7 insertions(+) rename test/{test_destructuring_assignment.coffee => test_pattern_matching.coffee} (93%) diff --git a/test/test_destructuring_assignment.coffee b/test/test_pattern_matching.coffee similarity index 93% rename from test/test_destructuring_assignment.coffee rename to test/test_pattern_matching.coffee index c32ea15f..856c9e78 100644 --- a/test/test_destructuring_assignment.coffee +++ b/test/test_pattern_matching.coffee @@ -13,6 +13,13 @@ func: -> 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] [a, b, c]: arr