Skip to content

Commit

Permalink
added test for deep pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
azizghuloum committed Nov 24, 2024
1 parent f15875d commit d28049e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/left-matching-2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using_syntax_rules(
[foo, [pre](xs,foo,ys)(args), [[pre],[xs],[ys],[args]]],
).rewrite([7,8,9](1,2,3,foo,4,5,6)(10,11,12))
8 changes: 8 additions & 0 deletions tests/left-matching-2.ts.expanded
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
[7, 8, 9],
[1, 2, 3],
[4, 5, 6],
[10, 11, 12],
];
================================
DONE

0 comments on commit d28049e

Please sign in to comment.