source: trunk/source/tests/ansi-tests/arrayp.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: 920 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Tue Jan 21 22:08:21 2003
4;;;; Contains: Tests of ARRAYP
5
6(in-package :cl-test)
7
8;;; Also tested by make-array.lsp
9
10(deftest arrayp.1
11  (notnot-mv (arrayp #(a b c)))
12  t)
13
14(deftest arrayp.2
15  (notnot-mv (arrayp "abcd"))
16  t)
17
18(deftest arrayp.3
19  (notnot-mv (arrayp #*001110101))
20  t)
21
22(deftest arrayp.4
23  (notnot-mv (arrayp #0aNIL))
24  t)
25
26(deftest arrayp.5
27  (notnot-mv (arrayp #2a((1 2 3)(4 5 6))))
28  t)
29
30(deftest arrayp.6
31  (check-type-predicate #'arrayp 'array)
32  nil)
33
34(deftest arrayp.7
35  (macrolet ((%m (z) z)) (arrayp (expand-in-current-env (%m 0))))
36  nil)
37
38(deftest arrayp.order.1
39  (let ((i 0) a)
40    (values
41     (arrayp (progn (setf a (incf i)) nil))
42     i a))
43  nil 1 1)
44
45;;; Error tests
46
47(deftest arrayp.error.1
48  (signals-error (arrayp) program-error)
49  t)
50
51(deftest arrayp.error.2
52  (signals-error (arrayp #(a b c) nil) program-error)
53  t)
Note: See TracBrowser for help on using the repository browser.