0.8.7.43:
[sbcl.git] / tests / pprint.impure.lisp
index 32451be..a88e54a 100644 (file)
           (write '`(lambda (,x)) :stream s :pretty t :readably t))
         "`(LAMBDA (,X))"))
 \f
+;;; SET-PPRINT-DISPATCH should accept function name arguments
+(defun ppd-function-name (s o)
+  (print (length o) s))
+(set-pprint-dispatch '(cons (eql frob)) 'ppd-function-name)
+(let ((s (with-output-to-string (s)
+          (pprint '(frob a b) s))))
+  (assert (position #\3 s)))
+\f
 ;;; success
 (quit :unix-status 104)