From b494a18b9e377eb3326eb99e7b2ee9a5f93bae31 Mon Sep 17 00:00:00 2001 From: James Cash Date: Thu, 5 Jun 2008 16:28:24 -0400 Subject: [PATCH] Adding tests for macros now --- extra/lisp/lisp-tests.factor | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extra/lisp/lisp-tests.factor b/extra/lisp/lisp-tests.factor index 2603a75cb0..a6016f2697 100644 --- a/extra/lisp/lisp-tests.factor +++ b/extra/lisp/lisp-tests.factor @@ -31,6 +31,10 @@ IN: lisp.test "((lambda (x y z) (+ x (- y z))) 40 3 1)" lisp-eval ] unit-test + { T{ lisp-symbol f "if" } } [ + "(defmacro if (pred tr fl) (quasiquote (cond ((unquote pred) (unquote tr)) (#t (unquote fl)))))" lisp-eval + ] unit-test + { 1 } [ "(if #t 1 2)" lisp-eval ] unit-test