summaryrefslogtreecommitdiff
path: root/tests/closuretest.lisp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-11-18 18:36:57 +0100
committertomsmeding <tom.smeding@gmail.com>2019-11-18 18:36:57 +0100
commit481884fb892f949478dad8d801ced704baea986c (patch)
tree8c5bcf1d306c8ad3d39d449da8def74cb24dca2d /tests/closuretest.lisp
parent4746aa52f85f4dc3ce8e195f0a5fd8afe2d54378 (diff)
Automatic testing of examples
Diffstat (limited to 'tests/closuretest.lisp')
-rw-r--r--tests/closuretest.lisp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/closuretest.lisp b/tests/closuretest.lisp
new file mode 100644
index 0000000..d743481
--- /dev/null
+++ b/tests/closuretest.lisp
@@ -0,0 +1,7 @@
+(print (((lambda (x) (lambda (y) (+ x y))) 1) 2))
+
+((lambda (f)
+ ((lambda (g1 g2)
+ (print (g1 10) (g1 20)))
+ (f 42)))
+ (lambda (x) (lambda (y) (+ x y))))