projects
/
scheme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add WIP on passing about closures
[scheme.git]
/
tests.scm
diff --git
a/tests.scm
b/tests.scm
index bfd9124510826ea685a814248fd084509510b583..168cf6613d4559b6403c97af1a858e35405eed3f 100644
(file)
--- 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)