source: trunk/source/tests/ansi-tests/pathname-version.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: 945 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Dec  6 14:45:16 2003
4;;;; Contains: Tests for PATHNAME-VERSION
5
6(in-package :cl-test)
7
8(compile-and-load "pathnames-aux.lsp")
9
10(deftest pathname-version.1
11  (loop for p in *pathnames*
12        for version = (pathname-version p)
13        unless (or (integerp version) (symbolp version))
14        collect (list p version))
15  nil)
16
17;;; section 19.3.2.1
18(deftest pathname-version.2
19  (loop for p in *logical-pathnames*
20        when (eq (pathname-version p) :unspecific)
21        collect p)
22  nil)
23
24(deftest pathname-version.3
25  (do-special-strings (s "" nil) (pathname-version s))
26  nil)
27
28(deftest pathname-version.error.1
29  (signals-error (pathname-version) program-error)
30  t)
31
32(deftest pathname-version.error.2
33  (signals-error (pathname-version *default-pathname-defaults* nil)
34                 program-error)
35  t)
36
37(deftest pathname-version.error.3
38  (check-type-error #'pathname-version #'could-be-pathname-designator)
39  nil)
40
Note: See TracBrowser for help on using the repository browser.