X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fpprint.impure.lisp;h=5317d7a16892e5a1eb8b0c93473e7158fb18e242;hb=e0ba0f10da0a0f2722494bd2dd9646f0b5a44d75;hp=a88e54adad4d26d1609ac3bfc4c24cddf84336b6;hpb=8cd789d3fc2be931ee5c3d31f102616021f7f227;p=sbcl.git diff --git a/tests/pprint.impure.lisp b/tests/pprint.impure.lisp index a88e54a..5317d7a 100644 --- a/tests/pprint.impure.lisp +++ b/tests/pprint.impure.lisp @@ -136,10 +136,11 @@ (write '`(lambda (,x)) :stream s :pretty t :readably t)) "`(LAMBDA (,X))")) -;;; SET-PPRINT-DISPATCH should accept function name arguments +;;; 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)) -(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)))