source: trunk/source/tests/ansi-tests/vectorp.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.1 KB
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sun Jan 26 13:17:05 2003
4;;;; Contains: Tests for VECTORP
5
6(in-package :cl-test)
7
8(deftest vectorp.1
9  (vectorp 1)
10  nil)
11
12(deftest vectorp.2
13  (vectorp (1+ most-positive-fixnum))
14  nil)
15
16(deftest vectorp.3
17  (vectorp #\a)
18  nil)
19
20(deftest vectorp.4
21  (vectorp 10.0)
22  nil)
23
24(deftest vectorp.5
25  (vectorp #'(lambda (x y) (cons y x)))
26  nil)
27
28(deftest vectorp.6
29  (vectorp '(a b))
30  nil)
31
32(deftest vectorp.7
33  (vectorp #0aT)
34  nil)
35
36(deftest vectorp.8
37  (vectorp #2a((a b)(c d)))
38  nil)
39
40(deftest vectorp.9
41  (notnot-mv (vectorp "abcd"))
42  t)
43
44(deftest vectorp.10
45  (notnot-mv (vectorp #*))
46  t)
47
48(deftest vectorp.11
49  (notnot-mv (vectorp #*1101))
50  t)
51
52(deftest vectorp.12
53  (notnot-mv (vectorp ""))
54  t)
55
56(deftest vectorp.13
57  (notnot-mv (vectorp #(1 2 3)))
58  t)
59
60(deftest vectorp.14
61  (notnot-mv (vectorp #()))
62  t)
63
64(deftest vectorp.15
65  (vectorp #b11010)
66  nil)
67
68;;; Error tests
69
70(deftest vectorp.error.1
71  (signals-error (vectorp) program-error)
72  t)
73
74(deftest vectorp.error.2
75  (signals-error (vectorp #() #()) program-error)
76  t)
77
78
79
80
81
82
Note: See TracBrowser for help on using the repository browser.