aboutsummaryrefslogtreecommitdiff
path: root/tests/step7_quote.mal
diff options
context:
space:
mode:
Diffstat (limited to 'tests/step7_quote.mal')
-rw-r--r--tests/step7_quote.mal23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/step7_quote.mal b/tests/step7_quote.mal
index 979b4a9..a8771bf 100644
--- a/tests/step7_quote.mal
+++ b/tests/step7_quote.mal
@@ -1,3 +1,26 @@
+;; Testing cons function
+(cons 1 (list))
+;=>(1)
+(cons 1 (list 2))
+;=>(1 2)
+(cons 1 (list 2 3))
+;=>(1 2 3)
+(cons (list 1) (list 2 3))
+;=>((1) 2 3)
+
+;; Testing concat function
+(concat)
+;=>()
+(concat (list 1 2))
+;=>(1 2)
+(concat (list 1 2) (list 3 4))
+;=>(1 2 3 4)
+(concat (list 1 2) (list 3 4) (list 5 6))
+;=>(1 2 3 4 5 6)
+(concat (concat))
+;=>()
+
+
;; Testing regular quote
(quote 7)
;=>7