From: Luke Lau Date: Thu, 15 Aug 2019 16:24:09 +0000 (+0100) Subject: Add more complicated pattern matching test case X-Git-Url: https://git.lukelau.me/?p=scheme.git;a=commitdiff_plain;h=54729d061d7cbf50de62d767327fcfc3bea1952f Add more complicated pattern matching test case --- diff --git a/tests.scm b/tests.scm index a3f4913..f327231 100644 --- a/tests.scm +++ b/tests.scm @@ -307,3 +307,9 @@ [(bar x) 0])) 12) +(test-prog '((data Foo [foo Int]) + (data Bar [bar Foo]) + (case (bar (foo 42)) + [(bar (foo x)) x])) + 42) +