X-Git-Url: http://git.lukelau.me/?p=scheme.git;a=blobdiff_plain;f=tests.scm;h=a3f4913a75d5e9177843da3d5a71ce2d24b0a8b4;hp=0c11e89714b89d309cae775cc7f47d3d800e752f;hb=a457cd3bb5ce9366db3ca0731a07abc50ecbc1f3;hpb=061f7cd9efa96f5d4e7206ec89931f9fd8421a6c diff --git a/tests.scm b/tests.scm index 0c11e89..a3f4913 100644 --- a/tests.scm +++ b/tests.scm @@ -300,3 +300,10 @@ [c 1]))) 2) +(test-prog '((data Foo [foo Int Int] [bar Bool]) + (case (foo 42 12) + [(foo 20 x) 0] + [(foo 42 x) x] + [(bar x) 0])) + 12) +