source: trunk/source/tests/ansi-tests/simple-bit-vector-p.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 12 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 1.2 KB
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sun Jan 26 20:20:27 2003
4;;;; Contains: Tests of SIMPLE-BIT-VECTOR-P
5
6(in-package :cl-test)
7
8(deftest simple-bit-vector-p.2
9  (notnot-mv (simple-bit-vector-p #*))
10  t)
11 
12(deftest simple-bit-vector-p.3
13  (notnot-mv (simple-bit-vector-p #*00101))
14  t)
15
16(deftest simple-bit-vector-p.4
17  (simple-bit-vector-p #(0 1 1 1 0 0))
18  nil)
19
20(deftest simple-bit-vector-p.5
21  (simple-bit-vector-p "011100")
22  nil)
23
24(deftest simple-bit-vector-p.6
25  (simple-bit-vector-p 0)
26  nil)
27
28(deftest simple-bit-vector-p.7
29  (simple-bit-vector-p 1)
30  nil)
31
32(deftest simple-bit-vector-p.8
33  (simple-bit-vector-p nil)
34  nil)
35
36(deftest simple-bit-vector-p.9
37  (simple-bit-vector-p 'x)
38  nil)
39
40(deftest simple-bit-vector-p.10
41  (simple-bit-vector-p '(0 1 1 0))
42  nil)
43
44(deftest simple-bit-vector-p.11
45  (simple-bit-vector-p (make-array '(2 2) :element-type 'bit
46                                   :initial-element 0))
47  nil)
48
49(deftest simple-bit-vector-p.12
50  (check-type-predicate #'simple-bit-vector-p 'simple-bit-vector)
51  nil)
52
53(deftest simple-bit-vector-p.error.1
54  (signals-error (simple-bit-vector-p) program-error)
55  t)
56
57(deftest simple-bit-vector-p.error.2
58  (signals-error (simple-bit-vector-p #* #*) program-error)
59  t)
Note: See TracBrowser for help on using the repository browser.