source: trunk/source/tests/ansi-tests/user-homedir-pathname.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: 1.2 KB
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Dec 11 22:26:24 2004
4;;;; Contains: Tests of USER-HOMEDIR-PATHNAME
5
6(in-package :cl-test)
7
8(deftest user-homedir-pathname.1
9  (let ((pn (user-homedir-pathname)))
10    (notnot pn))
11  t)
12
13(deftest user-homedir-pathname.2
14  (let* ((pn-list (multiple-value-list (user-homedir-pathname)))
15         (pn (first pn-list)))
16    (values
17     (length pn-list)
18     (notnot-mv (pathnamep pn))))
19  1 t)
20
21(deftest user-homedir-pathname.3
22  (let ((pn (user-homedir-pathname)))
23    (pathname-name pn))
24  nil)
25
26(deftest user-homedir-pathname.4
27  (let ((pn (user-homedir-pathname)))
28    (pathname-type pn))
29  nil)
30
31(deftest user-homedir-pathname.5
32  (let ((pn (user-homedir-pathname)))
33    (pathname-version pn))
34  nil)
35
36;; (deftest user-homedir-pathname.6
37;;  (let* ((pn (user-homedir-pathname))
38;;       (host (pathname-host pn)))
39;;    (or (not host)
40;;      (equalt pn (user-homedir-pathname host))))
41;;  t)
42
43(deftest user-homedir-pathname.7
44  (let* ((pn (user-homedir-pathname :unspecific)))
45    (or (null pn)
46        (notnot (pathnamep pn))))
47  t)
48
49(deftest user-homedir-pathname.error.1
50  (signals-error (user-homedir-pathname :unspecific nil) program-error)
51  t)
52
Note: See TracBrowser for help on using the repository browser.