mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-25 13:05:05 +02:00
Added quasi-quote tests
This commit is contained in:
parent
8ddce6b5bc
commit
f6c615ba30
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@
|
||||||
(assert "Testing assert function" #t)
|
(assert "Testing assert function" #t)
|
||||||
(assert "Testing assert function" 1)
|
(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
|
;; Lists
|
||||||
(define l (list 'a 'b 'c))
|
(define l (list 'a 'b 'c))
|
||||||
; TODO: seems to break eval below, is there a GC problem with a circular list?
|
; TODO: seems to break eval below, is there a GC problem with a circular list?
|
||||||
|
|
Loading…
Add table
Reference in a new issue