From 35e2bb8711bdacf3dedac1cb0410fa33f7bf9836 Mon Sep 17 00:00:00 2001 From: James Cash Date: Thu, 5 Jun 2008 18:14:43 -0400 Subject: [PATCH] More macro tests --- extra/lisp/lisp-tests.factor | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extra/lisp/lisp-tests.factor b/extra/lisp/lisp-tests.factor index a6016f2697..c4090e1098 100644 --- a/extra/lisp/lisp-tests.factor +++ b/extra/lisp/lisp-tests.factor @@ -7,8 +7,8 @@ IN: lisp.test [ init-env - "#f" [ f ] lisp-define - "#t" [ t ] lisp-define + [ f ] "#f" lisp-define + [ t ] "#t" lisp-define "+" "math" "+" define-primitive "-" "math" "-" define-primitive @@ -35,6 +35,10 @@ IN: lisp.test "(defmacro if (pred tr fl) (quasiquote (cond ((unquote pred) (unquote tr)) (#t (unquote fl)))))" lisp-eval ] unit-test + { t } [ + T{ lisp-symbol f "if" } lisp-macro? + ] unit-test + { 1 } [ "(if #t 1 2)" lisp-eval ] unit-test