1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Sun Aug 29 17:30:40 2004
;;;; Contains: Tests associated with SIMPLE-BASE-STRING
(in-package :cl-test)
(deftest simple-base-string.1
(subtypep* 'simple-base-string 'string)
t t)
(deftest simple-base-string.2
(subtypep* 'simple-base-string 'vector)
t t)
(deftest simple-base-string.3
(subtypep* 'simple-base-string 'simple-array)
t t)
(deftest simple-base-string.4
(subtypep* 'simple-base-string 'array)
t t)
(deftest simple-base-string.5
(subtypep* 'simple-base-string 'sequence)
t t)
(deftest simple-base-string.6
(subtypep* 'simple-base-string 'base-string)
t t)
(deftest simple-base-string.7
(subtypep* 'simple-base-string 'simple-string)
t t)
(deftest simple-base-string.8
(subtypep* 'simple-base-string 'simple-vector)
nil t)
(deftest simple-base-string.9
:notes (:allow-nil-arrays :nil-vectors-are-strings)
(subtypep* '(simple-array nil (*)) 'simple-base-string)
nil t)
(deftest simple-base-string.10
:notes (:allow-nil-arrays :nil-vectors-are-strings)
(typep* (make-array '(0) :element-type nil) 'simple-base-string)
nil)
(deftest simple-base-string.11
:notes (:allow-nil-arrays :nil-vectors-are-strings)
(typep* (make-array '(12) :element-type nil) 'simple-base-string)
nil)
|