source: trunk/source/tests/ansi-tests/pathnames.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: 520 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Nov 29 04:21:53 2003
4;;;; Contains: Various tests on pathnames
5
6(in-package :cl-test)
7
8(deftest pathnames-print-and-read-properly
9  (with-standard-io-syntax
10   (loop
11    for p1 in *pathnames*
12    for s = (handler-case (write-to-string p1 :readably t)
13                          (print-not-readable () :unreadable-error))
14    unless (eql s :unreadable-error)
15    append
16    (let ((p2 (read-from-string s)))
17     (unless (equal p1 p2)
18       (list (list p1 s p2))))))
19  nil)
Note: See TracBrowser for help on using the repository browser.