X-Git-Url: https://git.lukelau.me/?a=blobdiff_plain;f=tests.scm;h=cdd60bd92730df41c4d15077ddee7ffc61bf7f17;hb=277cd3c8e4ad4c727e041bf870a79862640c39b3;hp=ecee99eed962aa94ea39ed8c0f16f4b9c32bc4fa;hpb=8e106ca13666680051f91ab3f49ce2bd7e19ead7;p=scheme.git diff --git a/tests.scm b/tests.scm index ecee99e..cdd60bd 100644 --- a/tests.scm +++ b/tests.scm @@ -264,8 +264,14 @@ (test-prog '((data A [foo Int]) (let ([x (foo 42)]) (let ([(foo y) x]) - (+ 1 y)))) - 43) + (+ 2 y)))) + 44) + +(test-prog '((data A [foo Bool Int Int]) + (let ([x (foo (= 2 1) 123 45)] + [(foo a b c) x]) + (+ b c))) + (+ 123 45)) (test-prog '((data A [foo Int]) (data B [bar A])