source: trunk/source/tests/ansi-tests/compiled-function-p.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: 812 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Mon Jan 13 16:32:44 2003
4;;;; Contains: Tests of COMPILED-FUNCTION-P
5
6(in-package :cl-test)
7
8(deftest compiled-function-p.1
9  (check-type-predicate #'compiled-function-p 'compiled-function)
10  nil)
11
12(deftest compiled-function-p.2
13  (compiled-function-p '(lambda (x y) (cons y x)))
14  nil)
15
16(deftest compiled-function-p.3
17  (notnot-mv (compiled-function-p (compile nil '(lambda (y x) (cons x y)))))
18  t)
19
20(deftest compiled-function-p.order.1
21  (let ((i 0))
22    (values
23     (compiled-function-p (progn (incf i) '(lambda () nil)))
24     i))
25  nil 1)
26
27(deftest compiled-function-p.error.1
28  (signals-error (compiled-function-p) program-error)
29  t)
30
31(deftest compiled-function-p.error.2
32  (signals-error (compiled-function-p nil nil) program-error)
33  t)
Note: See TracBrowser for help on using the repository browser.