tests: with-compiler: print with *print-circle* and *print-readably*
This commit is contained in:
parent
be009ddc15
commit
2cac9642d4
1 changed files with 6 additions and 4 deletions
|
|
@ -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*)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue