summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-17 13:09:29 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-18 11:41:27 +0200
commit173e0143fe9930772e405d611f58f72f6f49a7f4 (patch)
treeab8a473558f6f19302d189eda46c6fcc9fa8e78f
parent04eec3a4532b7426c1cdee08b95f3ae658d07ae5 (diff)
init.lisp: Test IF.
-rw-r--r--init.lisp7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.lisp b/init.lisp
index 70a5aea..b7b9d99 100644
--- a/init.lisp
+++ b/init.lisp
@@ -34,6 +34,13 @@
(y 'value-y))
args x y))))
(ns-log (test6 1 2 3))
+(%fset 'test7 (compile '(sys::%lambda args (let ((x nil)) (if x 'yes 'no)))))
+(ns-log (test7 1 2 3))
+(%fset 'test8 (compile '(sys::%lambda args (let ((x 100)) (if x 'yes 'no)))))
+(ns-log (test8 1 2 3))
+(%fset 'test9 (compile '(sys::%lambda args (if args 'some-args 'no-args))))
+(ns-log (test9))
+(ns-log (test9 1 2 3))
;; (load "util.lisp")
;; (load "defun-0.lisp")