source: trunk/source/tests/ansi-tests/pathnamep.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: 707 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Dec  6 10:26:45 2003
4;;;; Contains: Tests of PATHNAMEP
5
6(in-package :cl-test)
7
8(deftest pathnamep.1
9  (check-type-predicate #'pathnamep 'pathname)
10  nil)
11
12(deftest pathnamep.2
13  (check-predicate #'(lambda (x) (eql (length (multiple-value-list (pathnamep x))) 1)))
14  nil)
15
16(deftest pathnamep.3
17  (check-predicate (typef '(not logical-pathname)) #'pathnamep)
18  nil)
19
20(deftest pathnamep.error.1
21  (signals-error (pathnamep) program-error)
22  t)
23
24(deftest pathnamep.error.2
25  (signals-error (pathnamep nil nil) program-error)
26  t)
27
28(deftest pathnamep.error.3
29  (signals-error (pathnamep *default-pathname-defaults* nil)
30                 program-error)
31  t)
Note: See TracBrowser for help on using the repository browser.