]> gitweb.factorcode.org Git - factor.git/commitdiff
More macro tests
authorJames Cash <james.nvc@gmail.com>
Thu, 5 Jun 2008 22:14:43 +0000 (18:14 -0400)
committerJames Cash <james.nvc@gmail.com>
Thu, 5 Jun 2008 22:14:43 +0000 (18:14 -0400)
extra/lisp/lisp-tests.factor

index a6016f2697336ba81450cf0f552cd2ef17f882f8..c4090e10980070d09c703436e04b481c3e9de53f 100644 (file)
@@ -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