Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
30eebe06
Commit
30eebe06
authored
Dec 31, 2003
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more pathname tests, particular tests involving logical pathnames.
parent
eca223c1
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
86 additions
and
2 deletions
+86
-2
ansi-tests/load-pathnames.lsp
ansi-tests/load-pathnames.lsp
+2
-0
ansi-tests/logical-pathname.lsp
ansi-tests/logical-pathname.lsp
+13
-0
ansi-tests/pathname-device.lsp
ansi-tests/pathname-device.lsp
+6
-0
ansi-tests/pathname-directory.lsp
ansi-tests/pathname-directory.lsp
+7
-0
ansi-tests/pathname-host.lsp
ansi-tests/pathname-host.lsp
+7
-0
ansi-tests/pathname-name.lsp
ansi-tests/pathname-name.lsp
+7
-0
ansi-tests/pathname-type.lsp
ansi-tests/pathname-type.lsp
+7
-0
ansi-tests/pathname-version.lsp
ansi-tests/pathname-version.lsp
+7
-0
ansi-tests/pathname.lsp
ansi-tests/pathname.lsp
+20
-1
ansi-tests/pathnamep.lsp
ansi-tests/pathnamep.lsp
+6
-0
ansi-tests/universe.lsp
ansi-tests/universe.lsp
+4
-1
No files found.
ansi-tests/load-pathnames.lsp
View file @
30eebe06
...
...
@@ -9,6 +9,7 @@
(load "pathnames.lsp")
(load "pathname.lsp")
(load "pathnamep.lsp")
(load "make-pathname.lsp")
(load "pathname-host.lsp")
(load "pathname-device.lsp")
...
...
@@ -17,4 +18,5 @@
(load "pathname-type.lsp")
(load "pathname-version.lsp")
(load "logical-pathname.lsp")
(load "translate-logical-pathname.lsp")
ansi-tests/logical-pathname.lsp
0 → 100644
View file @
30eebe06
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Tue Dec 30 19:05:01 2003
;;;; Contains: Tests of LOGICAL-PATHNAME
(in-package :cl-test)
(deftest logical-pathname.1
(loop for x in *logical-pathnames*
always (eql x (logical-pathname x)))
t)
ansi-tests/pathname-device.lsp
View file @
30eebe06
...
...
@@ -53,6 +53,12 @@
collect (list p device))
nil)
;;; section 19.3.2.1
(deftest pathname-device.7
(loop for p in *logical-pathnames*
always (eq (pathname-device p) :unspecific))
t)
(deftest pathname-device.error.1
(classify-error (pathname-device))
program-error)
...
...
ansi-tests/pathname-directory.lsp
View file @
30eebe06
...
...
@@ -67,6 +67,13 @@
collect (list p directory))
nil)
;;; section 19.3.2.1
(deftest pathname-directory.7
(loop for p in *logical-pathnames*
when (eq (pathname-directory p) :unspecific)
collect p)
nil)
(deftest pathname-directory.error.1
(classify-error (pathname-directory))
program-error)
...
...
ansi-tests/pathname-host.lsp
View file @
30eebe06
...
...
@@ -39,6 +39,13 @@
'foo t))) 1))
t)
;;; section 19.3.2.1
(deftest pathname-host.7
(loop for p in *logical-pathnames*
when (eq (pathname-host p) :unspecific)
collect p)
nil)
(deftest pathname-host.error.1
(classify-error (pathname-host))
program-error)
...
...
ansi-tests/pathname-name.lsp
View file @
30eebe06
...
...
@@ -53,6 +53,13 @@
collect (list p name))
nil)
;;; section 19.3.2.1
(deftest pathname-name.7
(loop for p in *logical-pathnames*
when (eq (pathname-name p) :unspecific)
collect p)
nil)
(deftest pathname-name.error.1
(classify-error (pathname-name))
program-error)
...
...
ansi-tests/pathname-type.lsp
View file @
30eebe06
...
...
@@ -53,6 +53,13 @@
collect (list p type))
nil)
;;; section 19.3.2.1
(deftest pathname-type.7
(loop for p in *logical-pathnames*
when (eq (pathname-type p) :unspecific)
collect p)
nil)
(deftest pathname-type.error.1
(classify-error (pathname-type))
program-error)
...
...
ansi-tests/pathname-version.lsp
View file @
30eebe06
...
...
@@ -12,6 +12,13 @@
collect (list p version))
nil)
;;; section 19.3.2.1
(deftest pathname-version.2
(loop for p in *logical-pathnames*
when (eq (pathname-version p) :unspecific)
collect p)
nil)
(deftest pathname-version.error.1
(classify-error (pathname-version))
program-error)
...
...
ansi-tests/pathname.lsp
View file @
30eebe06
...
...
@@ -10,7 +10,26 @@
always (eq x (pathname x)))
t)
;;; More here
(deftest pathname.2
(equalt #p"ansi-aux.lsp" (pathname "ansi-aux.lsp"))
t)
(deftest pathname.3
(let ((s (open "ansi-aux.lsp" :direction :input)))
(prog1 (equalt (truename (pathname s)) (truename #p"ansi-aux.lsp"))
(close s)))
t)
(deftest pathname.4
(let ((s (open "ansi-aux.lsp" :direction :input)))
(close s)
(equalt (truename (pathname s)) (truename #p"ansi-aux.lsp")))
t)
(deftest pathname.5
(loop for x in *logical-pathnames*
always (eq x (pathname x)))
t)
;;; Error tests
...
...
ansi-tests/pathnamep.lsp
View file @
30eebe06
...
...
@@ -17,6 +17,12 @@
always (eql (length (multiple-value-list (pathnamep x))) 1))
t)
(deftest pathnamep.3
(loop for x in *universe*
always (or (not (typep x 'logical-pathname))
(pathnamep x)))
t)
(deftest pathnamep.error.1
(classify-error (pathnamep))
program-error)
...
...
ansi-tests/universe.lsp
View file @
30eebe06
...
...
@@ -338,7 +338,10 @@
(eval-when (load eval compile)
(setf (logical-pathname-translations "CLTESTROOT")
`(("**;*.*.*" ,(make-pathname :directory '(:absolute))))))
`(("**;*.*.*" ,(make-pathname :directory '(:absolute)))))
(setf (logical-pathname-translations "CLTEST")
`(("**;*.*.*" ,(make-pathname))))
)
(defparameter *logical-pathnames*
(append
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment