source: trunk/source/tests/ansi-tests/endp.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: 716 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Mar 28 07:34:40 1998
4;;;; Contains: Tests of ENDP
5
6(in-package :cl-test)
7
8(compile-and-load "cons-aux.lsp")
9
10(deftest endp-nil
11  (notnot-mv (endp nil))
12  t)
13
14(deftest endp-cons
15  (endp (cons 'a 'a))
16  nil)
17
18(deftest endp-singleton-list
19  (endp '(a))
20  nil)
21
22(deftest endp.order.1
23  (let ((i 0))
24    (values
25     (endp (progn (incf i) '(a b c)))
26     i))
27  nil 1)
28
29(deftest endp.error.1
30  (check-type-error #'endp #'listp)
31  nil)
32
33(deftest endp.error.4
34  (signals-error (endp) program-error)
35  t)
36
37(deftest endp.error.5
38  (signals-error (endp nil nil) program-error)
39  t)
40
41(deftest endp.error.6
42  (signals-error (locally (endp 1)) type-error)
43  t)
Note: See TracBrowser for help on using the repository browser.