source: trunk/source/tests/ansi-tests/array-as-class.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.3 KB
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sun Jan 26 07:45:25 2003
4;;;; Contains: Tests for ARRAY as a class
5
6(in-package :cl-test)
7
8(deftest array-as-class.1
9  (notnot-mv (typep #() (find-class 'array)))
10  t)
11 
12(deftest array-as-class.2
13  (notnot-mv (typep #(a b c) (find-class 'array)))
14  t)
15 
16(deftest array-as-class.3
17  (notnot-mv (typep #0aNIL (find-class 'array)))
18  t)
19 
20(deftest array-as-class.4
21  (notnot-mv (typep #2a((a b)(c d)) (find-class 'array)))
22  t)
23 
24(deftest array-as-class.5
25  (notnot-mv (typep "abcde" (find-class 'array)))
26  t)
27 
28(deftest array-as-class.6
29  (notnot-mv (typep #*0011101 (find-class 'array)))
30  t)
31
32(deftest array-as-class.7
33  (subtypep* 'array (find-class 'array))
34  t t)
35
36(deftest array-as-class.8
37  (subtypep* (find-class 'array) 'array)
38  t t)
39
40(deftest array-as-class.9
41  (typep nil (find-class 'array))
42  nil)
43
44(deftest array-as-class.10
45  (typep 'x (find-class 'array))
46  nil)
47
48(deftest array-as-class.11
49  (typep '(a b c) (find-class 'array))
50  nil)
51
52(deftest array-as-class.12
53  (typep 10.0 (find-class 'array))
54  nil)
55
56(deftest array-as-class.13
57  (typep #'(lambda (x) (cons x nil)) (find-class 'array))
58  nil)
59
60(deftest array-as-class.14
61  (typep 1 (find-class 'array))
62  nil)
63
64(deftest array-as-class.15
65  (typep (1+ most-positive-fixnum) (find-class 'array))
66  nil)
Note: See TracBrowser for help on using the repository browser.