2
;;;; Author: Paul Dietz
3
;;;; Created: Thu Jun 10 19:31:01 2004
4
;;;; Contains: Tests of printing of backquote forms (and fragments thereof)
8
(compile-and-load "printer-aux.lsp")
9
(compile-and-load "backquote-aux.lsp")
11
(deftest print.backquote.random.1
12
(let* ((x '`(a ,b ,@c (d . ,e) ,.f #(1 2 ,p ,@q ,.r s) g))
17
nconc (randomly-check-readability y :test #'is-similar))
18
(and (not (equal x y)) (list :modified x y))))
21
(deftest print.backquote.random.2
22
(let* ((x '`(,@a ,@b))
27
nconc (randomly-check-readability y :test #'is-similar))
28
(and (not (is-similar x y)) (list :modified x y))))
31
(deftest print.backquote.random.3
32
(let* ((x '`(,.a ,.b))
37
nconc (randomly-check-readability y :test #'is-similar))
38
(and (not (is-similar x y)) (list :modified x y))))
41
(deftest print.backquote.random.4
47
nconc (randomly-check-readability y :test #'is-similar))
48
(and (not (is-similar x y)) (list :modified x y))))
51
(deftest print.backquote.random.5
57
nconc (randomly-check-readability y :test #'is-similar))
58
(and (not (is-similar x y)) (list :modified x y))))
61
(deftest print.backquote.random.6
62
(let ((x '`(,@a ,@b)))
67
nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
70
(deftest print.backquote.random.7
71
(let ((x '`(,.a ,.b)))
76
nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
79
(deftest print.backquote.random.8
85
nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
88
(deftest print.backquote.random.9
94
nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
97
(deftest print.backquote.random.10
98
(let ((x '`#(,a , .b)))
101
nconc (randomly-check-readability x :test #'is-similar)))
104
(deftest print.backquote.random.11
105
(let ((x '`#(,a , @b)))
108
nconc (randomly-check-readability x :test #'is-similar)))
111
(deftest print.backquote.random.12
112
(let ((x '`#(,a ,b c)))
117
nconc (randomly-check-readability (list (car x)) :test #'is-similar))))
120
(deftest print.backquote.random.13
121
(let* ((x '`#(,a ,b c))
126
nconc (randomly-check-readability x :test #'is-similar))
127
(and (not (is-similar x y)) (list :modified x y))))
130
(deftest print.backquote.random.14
131
(loop for x = (make-random-backquoted-form 100)
133
nconc (randomly-check-readability x :test #'is-similar))
b'\\ No newline at end of file'