0.7.12.5:
[sbcl.git] / tests / interface.pure.lisp
1 ;;;; tests for problems in the interface presented to the user/programmer
2
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; While most of SBCL is derived from the CMU CL system, the test
7 ;;;; files (like this one) were written from scratch after the fork
8 ;;;; from CMU CL.
9 ;;;; 
10 ;;;; This software is in the public domain and is provided with
11 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
12 ;;;; more information.
13
14 (in-package :cl-user)
15 \f
16 ;;;; properties of symbols, e.g. presence of doc strings for public symbols
17
18 ;;; FIXME: It would probably be good to require here that every
19 ;;; external symbol either has a doc string or has some good excuse
20 ;;; (like being an accessor for a structure which has a doc string).
21 \f
22 ;;;; tests of interface machinery
23
24 ;;; APROPOS should accept a package designator, not just a package, and
25 ;;; furthermore do the right thing when it gets a package designator.
26 ;;; (bug reported and fixed by Alexey Dejneka sbcl-devel 2001-10-17)
27 (assert (< 0
28            (length (apropos-list "PRINT" :cl))
29            (length (apropos-list "PRINT"))))
30 \f
31 ;;; DESCRIBE shouldn't fail on rank-0 arrays (bug reported and fixed
32 ;;; by Lutz Euler sbcl-devel 2002-12-03)
33 (describe #0a0)
34 (describe #(1 2 3))
35 (describe #2a((1 2) (3 4)))
36
37 ;;; TYPEP, SUBTYPEP, UPGRADED-ARRAY-ELEMENT-TYPE and
38 ;;; UPGRADED-COMPLEX-PART-TYPE should be able to deal with NIL as an
39 ;;; environment argument
40 (typep 1 'fixnum nil)
41 (subtypep 'fixnum 'integer nil)
42 (upgraded-array-element-type '(mod 5) nil)
43 (upgraded-complex-part-type '(single-float 0.0 1.0) nil)