X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.pure.lisp;h=b3f8949ac87ab6d54712e207d2cbbaac86769712;hb=69cd16d7335a7f66985752b84f78d18e45f9783e;hp=3ef66b65b23f161ce60a2ab51f3e7dc5ecef1552;hpb=d171bd26f76aaa12d600542337b4186296c2c03d;p=sbcl.git diff --git a/tests/interface.pure.lisp b/tests/interface.pure.lisp index 3ef66b6..b3f8949 100644 --- a/tests/interface.pure.lisp +++ b/tests/interface.pure.lisp @@ -1,3 +1,5 @@ +;;;; tests for problems in the interface presented to the user/programmer + ;;;; This software is part of the SBCL system. See the README file for ;;;; more information. ;;;; @@ -10,27 +12,18 @@ ;;;; more information. (in-package :cl-user) + +;;;; properties of symbols, e.g. presence of doc strings for public symbols + +;;; FIXME: It would probably be good to require here that every +;;; external symbol either has a doc string or has some good excuse +;;; (like being an accessor for a structure which has a doc string). + +;;;; tests of interface machinery -;;; Check for fbound external symbols in public packages that have no -;;; argument list information. (This can happen if we get carried away -;;; with byte compilation, since at least in sbcl-0.6.12 the byte -;;; compiler can't record argument list information.) -(defvar *public-package-names* - '("SB-ALIEN" "SB-C-CALL" "SB-DEBUG" "SB-EXT" "SB-GRAY" "SB-MP" - "SB-PROFILE" "SB-PCL" "COMMON-LISP")) -(defun has-arglist-info-p (function) - (and (not (typep function 'sb-c::byte-function)) - (sb-kernel:%function-arglist function))) -(defun check-ext-symbols-arglist (package) - (format t "~% looking at package: ~A" package) - (do-external-symbols (ext-sym package) - (when (fboundp ext-sym) - (let ((fun (symbol-function ext-sym))) - (unless (has-arglist-info-p fun) - (error "~%Function ~A (~A) has no argument-list information available, ~%~ - and is probably byte-compiled.~%" ext-sym fun)))))) -(dolist (public-package *public-package-names*) - (when (find-package public-package) - (check-ext-symbols-arglist public-package))) -(terpri) -(print "done with interface.pure.lisp") +;;; APROPOS should accept a package designator, not just a package, and +;;; furthermore do the right thing when it gets a package designator. +;;; (bug reported and fixed by Alexey Dejneka sbcl-devel 2001-10-17) +(assert (< 0 + (length (apropos-list "PRINT" :cl)) + (length (apropos-list "PRINT"))))