]> gitweb.factorcode.org Git - factor.git/commitdiff
Adding tests for macros now
authorJames Cash <james.nvc@gmail.com>
Thu, 5 Jun 2008 20:28:24 +0000 (16:28 -0400)
committerJames Cash <james.nvc@gmail.com>
Thu, 5 Jun 2008 20:28:24 +0000 (16:28 -0400)
extra/lisp/lisp-tests.factor

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