tests: with-compiler: print with *print-circle* and *print-readably*

This commit is contained in:
Marius Gerbershagen 2020-12-30 22:27:51 +01:00
parent be009ddc15
commit 2cac9642d4

View file

@ -89,10 +89,12 @@ allow using reader macros. The output is stored in a string and output
as a second value."
`(progn
(with-open-file (s ,filename :direction :output :if-exists :supersede
:if-does-not-exist :create)
,@(loop for f in forms collect (if (stringp f)
`(format s "~A" ,f)
`(print ,f s))))
:if-does-not-exist :create)
(let ((*print-circle* t)
(*print-readably* t))
,@(loop for f in forms collect (if (stringp f)
`(format s "~A" ,f)
`(print ,f s)))))
(let* ((compiled-file t)
(output
(with-output-to-string (*standard-output*)