source: trunk/source/tests/ansi-tests/realp.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: 663 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sun Sep  7 08:22:06 2003
4;;;; Contains: Tests of REALP
5
6(in-package :cl-test)
7
8(deftest realp.error.1
9  (signals-error (realp) program-error)
10  t)
11
12(deftest realp.error.2
13  (signals-error (realp 0 nil) program-error)
14  t)
15
16(deftest realp.error.3
17  (signals-error (realp nil nil) program-error)
18  t)
19
20(deftest realp.1
21  (notnot-mv (realp 0))
22  t)
23 
24(deftest realp.2
25  (notnot-mv (realp 0.0))
26  t)
27 
28(deftest realp.3
29  (realp #c(1 2))
30  nil)
31
32(deftest realp.4
33  (notnot-mv (realp 17/13))
34  t)
35
36(deftest realp.5
37  (realp 'a)
38  nil)
39
40(deftest realp.6
41  (check-type-predicate #'realp 'real)
42  nil)
43
44
45
Note: See TracBrowser for help on using the repository browser.