stream-external-format.lsp 564 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
;-*- Mode:     Lisp -*-
;;;; Author:   Paul Dietz
;;;; Created:  Tue Jan 27 20:53:21 2004
;;;; Contains: Tests of STREAM-EXTERNAL-FORMAT

(in-package :cl-test)

;;; This is tested in open.lsp

;;; Error tests

(deftest stream-external-format.error.1
  (signals-error (stream-external-format) program-error)
  t)

(deftest stream-external-format.error.2
  (signals-error
   (let ((pn #p"tmp.dat"))
     (delete-all-versions pn)
     (with-open-file
      (s pn :direction :output :if-exists :supersede)
      (stream-external-format s nil)))
   program-error)
  t)