source: trunk/source/tests/ansi-tests/integerp.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 12 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 642 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sun Sep  7 10:18:34 2003
4;;;; Contains: Tests for INTEGERP
5
6(in-package :cl-test)
7
8(deftest integerp.error.1
9  (signals-error (integerp) program-error)
10  t)
11
12(deftest integerp.error.2
13  (signals-error (integerp 0 0) program-error)
14  t)
15
16(deftest integerp.error.3
17  (signals-error (integerp nil nil) program-error)
18  t)
19
20(deftest integerp.1
21  (loop for i in *integers*
22        for vals = (multiple-value-list (integerp i))
23        unless (and (= (length vals) 1)
24                    (first vals))
25        collect (cons i vals))
26  nil)
27
28(deftest integerp.2
29  (check-type-predicate #'integerp 'integer)
30  nil)
31
32
33
34
35
Note: See TracBrowser for help on using the repository browser.