projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.10.63:
[sbcl.git]
/
tests
/
pprint.impure.lisp
diff --git
a/tests/pprint.impure.lisp
b/tests/pprint.impure.lisp
index
a88e54a
..
5317d7a
100644
(file)
--- 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))"))
\f
(write '`(lambda (,x)) :stream s :pretty t :readably t))
"`(LAMBDA (,X))"))
\f
-;;; 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))
(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)))
(let ((s (with-output-to-string (s)
(pprint '(frob a b) s))))
(assert (position #\3 s)))