X-Git-Url: http://git.lukelau.me/?p=scheme.git;a=blobdiff_plain;f=tests.scm;h=168cf6613d4559b6403c97af1a858e35405eed3f;hp=bfd9124510826ea685a814248fd084509510b583;hb=6684c39cf92a0fa6c21339c6fec8a6e4cf4f463d;hpb=6f699d1ddbb1cd33ec3095a0e6e9a6eee157d708 diff --git a/tests.scm b/tests.scm index bfd9124..168cf66 100644 --- a/tests.scm +++ b/tests.scm @@ -48,3 +48,6 @@ (test-prog '((lambda (x y) (+ x y)) 1 2) 3) (test-prog '((lambda (x) (+ ((lambda (y) (+ y 1)) 3) x)) 2) 6) + + ; passing closures about +(test-prog '((lambda (z) ((lambda (x) (x 1)) (lambda (y) (+ z y)))) 2) 3)