Skip to content

Commit b641e56

Browse files
committed
Add regression tests for CDR-7
1 parent daa9fe2 commit b641e56

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/lisp/regression-tests/printer01.lisp

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,3 +588,55 @@ BBBBCCCC**DDDD"))
588588
:pretty t)
589589
("(A (CORE:UNQUOTE A) (CORE:UNQUOTE-SPLICE A) (CORE:UNQUOTE-NSPLICE A)
590590
. `(A ,@(A (CORE:UNQUOTE A)) ,.A . ,A))"))
591+
592+
(defun fmt (stream argument colonp atsignp &rest params)
593+
(declare (ignore argument colonp atsignp))
594+
(format stream "~S" params))
595+
596+
(test cdr-7.comma.1
597+
(format nil "~1,2/clasp-tests:fmt/" t)
598+
("(1 2)"))
599+
600+
(test cdr-7.comma.2
601+
(format nil "~1,2,/clasp-tests:fmt/" t)
602+
("(1 2)"))
603+
604+
(test cdr-7.comma.3
605+
(format nil "~1,2:/clasp-tests:fmt/" t)
606+
("(1 2)"))
607+
608+
(test cdr-7.comma.4
609+
(format nil "~1,2,:/clasp-tests:fmt/" t)
610+
("(1 2)"))
611+
612+
(test cdr-7.parameter.1
613+
(format nil "~1,v/clasp-tests:fmt/" t t)
614+
("(1 T)"))
615+
616+
(test cdr-7.parameter.2
617+
(format nil "~1,v/clasp-tests:fmt/" nil t)
618+
("(1 NIL)"))
619+
620+
(test cdr-7.parameter.3
621+
(format nil "~1,v,/clasp-tests:fmt/" t t)
622+
("(1 T)"))
623+
624+
(test cdr-7.parameter.4
625+
(format nil "~1,v,/clasp-tests:fmt/" nil t)
626+
("(1 NIL)"))
627+
628+
(test cdr-7.parameter.5
629+
(format nil "~1,v:/clasp-tests:fmt/" t t)
630+
("(1 T)"))
631+
632+
(test cdr-7.parameter.6
633+
(format nil "~1,v:/clasp-tests:fmt/" nil t)
634+
("(1 NIL)"))
635+
636+
(test cdr-7.parameter.7
637+
(format nil "~1,v,:/clasp-tests:fmt/" t t)
638+
("(1 T)"))
639+
640+
(test cdr-7.parameter.8
641+
(format nil "~1,v,:/clasp-tests:fmt/" nil t)
642+
("(1 NIL)"))

0 commit comments

Comments
 (0)