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

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

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

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