Skip to content
Snippets Groups Projects
Commit f8058fbe authored by pfdietz's avatar pfdietz
Browse files

Check that the car of the backquote form is a symbol (as it usually is.)

parent c37d18bd
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,7 @@
(deftest print.backquote.random.6 (deftest print.backquote.random.6
(let ((x '`(,@a ,@b))) (let ((x '`(,@a ,@b)))
(and (consp x) (and (consp x)
(symbolp (car x))
(loop (loop
repeat 20 repeat 20
nconc (randomly-check-readability (list (car x)) :test #'is-similar)))) nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
...@@ -112,6 +113,7 @@ ...@@ -112,6 +113,7 @@
(deftest print.backquote.random.7 (deftest print.backquote.random.7
(let ((x '`(,.a ,.b))) (let ((x '`(,.a ,.b)))
(and (consp x) (and (consp x)
(symbolp (car x))
(loop (loop
repeat 20 repeat 20
nconc (randomly-check-readability (list (car x)) :test #'is-similar)))) nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
...@@ -120,6 +122,7 @@ ...@@ -120,6 +122,7 @@
(deftest print.backquote.random.8 (deftest print.backquote.random.8
(let ((x '`(,a ,b))) (let ((x '`(,a ,b)))
(and (consp x) (and (consp x)
(symbolp (car x))
(loop (loop
repeat 20 repeat 20
nconc (randomly-check-readability (list (car x)) :test #'is-similar)))) nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
...@@ -128,6 +131,7 @@ ...@@ -128,6 +131,7 @@
(deftest print.backquote.random.9 (deftest print.backquote.random.9
(let ((x '`#(,a ,b))) (let ((x '`#(,a ,b)))
(and (consp x) (and (consp x)
(symbolp (car x))
(loop (loop
repeat 20 repeat 20
nconc (randomly-check-readability (list (car x)) :test #'is-similar)))) nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment