Added quasi-quote tests

This commit is contained in:
Justin Ethier 2015-05-29 18:28:06 -04:00
parent 8ddce6b5bc
commit f6c615ba30

View file

@ -17,6 +17,11 @@
(assert "Testing assert function" #t)
(assert "Testing assert function" 1)
;; Quotation / Quasi-quotes
(assert:equal "quasi-quote #1" `(read ,(+ 1 2 3)) '(read 6))
(assert:equal "quasi-quote #2" `(read ,(list 1 2 3)) '(read (1 2 3)))
(assert:equal "quasi-quote splicing" `(read ,@(list 1 2 3)) '(read 1 2 3))
;; Lists
(define l (list 'a 'b 'c))
; TODO: seems to break eval below, is there a GC problem with a circular list?