X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fpprint.impure.lisp;h=5317d7a16892e5a1eb8b0c93473e7158fb18e242;hb=2f3c0044ba37b2b33ab60b283e4612aa1ba643eb;hp=32451bedf3816397018dacf9e0c198ca308fd9b9;hpb=ac0bb62cb48dcba68b07e0a1eb5573de92373c7c;p=sbcl.git diff --git a/tests/pprint.impure.lisp b/tests/pprint.impure.lisp index 32451be..5317d7a 100644 --- a/tests/pprint.impure.lisp +++ b/tests/pprint.impure.lisp @@ -136,5 +136,14 @@ (write '`(lambda (,x)) :stream s :pretty t :readably t)) "`(LAMBDA (,X))")) +;;; SET-PPRINT-DISPATCH should accept function name arguments, and not +;;; rush to coerce them to functions. +(set-pprint-dispatch '(cons (eql frob)) 'ppd-function-name) +(defun ppd-function-name (s o) + (print (length o) s)) +(let ((s (with-output-to-string (s) + (pprint '(frob a b) s)))) + (assert (position #\3 s))) + ;;; success (quit :unix-status 104)