source: trunk/source/tests/ansi-tests/output-stream-p.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 12 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 894 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Tue Jan 13 19:46:12 2004
4;;;; Contains: Tests of OUTPUT-STREAM-P
5
6(in-package :cl-test)
7
8(deftest output-stream-p.1
9  (notnot-mv (output-stream-p *standard-output*))
10  t)
11
12(deftest output-stream-p.2
13  (notnot-mv (output-stream-p *terminal-io*))
14  t)
15
16(deftest output-stream-p.3
17  (with-open-file (s "output-stream-p.lsp" :direction :input)
18                  (output-stream-p s))
19  nil)
20
21(deftest output-stream-p.4
22  (with-open-file (s "foo.txt" :direction :output
23                     :if-exists :supersede)
24                  (notnot-mv (output-stream-p s)))
25  t)
26
27;;; Error tests
28
29(deftest output-stream-p.error.1
30  (signals-error (output-stream-p) program-error)
31  t)
32
33(deftest output-stream-p.error.2
34  (signals-error (output-stream-p *standard-output* nil) program-error)
35  t)
36
37(deftest output-stream-p.error.3
38  (check-type-error #'output-stream-p #'streamp)
39  nil)
Note: See TracBrowser for help on using the repository browser.