source: trunk/source/tests/ansi-tests/nil.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: 609 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Thu Oct 17 06:32:46 2002
4;;;; Contains: Tests for NIL
5
6(in-package :cl-test)
7
8(deftest nil.1
9  (check-predicate #'(lambda (x) (not (subtypep (type-of x) nil))))
10  nil)
11
12
13(deftest nil.2
14  (check-predicate #'(lambda (x) (subtypep nil (type-of x))))
15  nil)
16
17(deftest nil.3
18  (not-mv (constantp nil))
19  nil)
20
21(deftest nil.4
22  (car nil)
23  nil)
24
25(deftest nil.5
26  (cdr nil)
27  nil)
28
29(deftest nil.6
30  (eval nil)
31  nil)
32
33(deftest nil.7
34  (symbol-value nil)
35  nil)
36
37(deftest nil.8
38  (eqt nil 'nil)
39  t)
40
41;;; NIL is, of course, present in many other files
Note: See TracBrowser for help on using the repository browser.