X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fpprint.impure.lisp;h=ee1f91a70a02c10c4f20b8d19eacc02261a178cf;hb=94cc1963322581d9e4b6bbd96c399a0507c601be;hp=216c9e099312396a0d023c87837968f9bd54baa1;hpb=165bb53b405ab95ce76615ab77cee8284df0a36e;p=sbcl.git diff --git a/tests/pprint.impure.lisp b/tests/pprint.impure.lisp index 216c9e0..ee1f91a 100644 --- a/tests/pprint.impure.lisp +++ b/tests/pprint.impure.lisp @@ -67,5 +67,27 @@ ;;; way to make an automated test: ;;; (LET ((*PRINT-CIRCLE* T)) (DESCRIBE (MAKE-HASH-TABLE))) +;;; bug 263: :PREFIX, :PER-LINE-PREFIX and :SUFFIX arguments of +;;; PPRINT-LOGICAL-BLOCK may be complex strings +(let ((list '(1 2 3)) + (prefix (make-array 2 + :element-type 'character + :displaced-to ";x" + :fill-pointer 1)) + (suffix (make-array 2 + :element-type 'character + :displaced-to ">xy" + :displaced-index-offset 1 + :fill-pointer 1))) + (assert (equal (with-output-to-string (s) + (pprint-logical-block (s list + :per-line-prefix prefix + :suffix suffix) + (format s "~{~W~^~:@_~}" list))) + (format nil ";1~%~ + ;2~%~ + ;3x")))) + + ;;; success (quit :unix-status 104)