summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/read-print.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/read-print.scm b/tests/read-print.scm
index e3f23194af3..004fcff19f1 100644
--- a/tests/read-print.scm
+++ b/tests/read-print.scm
@@ -341,4 +341,18 @@ mnopqrstuvwxyz.\")"
341 #:format-vertical-space 341 #:format-vertical-space
342 canonicalize-vertical-space))))) 342 canonicalize-vertical-space)))))
343 343
344(test-equal "pretty-print-with-comments, multi-line comment"
345 "\
346(list abc
347 ;; This comment spans
348 ;; two lines.
349 def)"
350 (call-with-output-string
351 (lambda (port)
352 (pretty-print-with-comments port
353 `(list abc ,(comment "\
354;; This comment spans\n
355;; two lines.\n")
356 def)))))
357
344(test-end) 358(test-end)