0.8.8.2:
[sbcl/lichteblau.git] / tests / clos.pure.lisp
bloba6a032d9f4623a423b038d303f1c3c57f5e1c7a5
1 ;;;; CLOS tests with no side effects
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.
14 (cl:in-package :cl-user)
16 ;;; not really a test for observable behaviour, but: make sure that
17 ;;; all generic functions on startup have lambda lists known to the
18 ;;; system, because some functionality (e.g. &key argument checking)
19 ;;; depends on it. The basic functionality is tested elsewhere, but
20 ;;; this is to investigate the internals for possible inconsistency.
21 (assert (null
22 (let (collect)
23 (sb-pcl::map-all-generic-functions
24 (lambda (gf)
25 (let ((arg-info (sb-pcl::gf-arg-info gf)))
26 (when (eq (sb-pcl::arg-info-lambda-list arg-info)
27 :no-lambda-list)
28 (push gf collect)))))
29 (print (nreverse collect)))))