From c30efef469e22c8ba345a72c058c28362e57b746 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Mon, 3 Nov 2014 20:02:09 -0600 Subject: R: add step6_file and step7_quote Change symbols to be special class. --- tests/step7_quote.mal | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'tests/step7_quote.mal') 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 -- cgit v1.2.3