;;;; This software is part of the SBCL system. See the README file for ;;;; more information. ;;;; ;;;; While most of SBCL is derived from the CMU CL system, the test ;;;; files (like this one) were written from scratch after the fork ;;;; from CMU CL. ;;;; ;;;; This software is in the public domain and is provided with ;;;; absolutely no warranty. See the COPYING and CREDITS files for ;;;; more information. (in-package "CL-USER") (locally (declare (notinline mapcar)) (mapcar (lambda (args) (destructuring-bind (obj type-spec result) args (flet ((matches-result? (x) (eq (if x t nil) result))) (assert (matches-result? (typep obj type-spec))) (assert (matches-result? (sb-kernel:ctypep obj (sb-kernel:specifier-type type-spec))))))) '((nil (or null vector) t) (nil (or number vector) nil) (12 (or null vector) nil) (12 (and (or number vector) real) t))))