source: trunk/source/tests/ansi-tests/interactive-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: 742 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Tue Jan 13 19:47:59 2004
4;;;; Contains: Tests of INTERACTIVE-STREAM-P
5
6(in-package :cl-test)
7
8(deftest interactive-stream-p.1
9  (let ((streams (list *debug-io* *error-output* *query-io*
10                       *standard-input* *standard-output*
11                       *trace-output* *terminal-io*)))
12    (mapc #'interactive-stream-p streams)
13    ;; no error should occur
14    nil)
15  nil)
16
17(deftest interactive-stream-p.error.1
18  (check-type-error #'interactive-stream-p #'streamp)
19  nil)
20
21(deftest interactive-stream-p.error.2
22  (signals-error (interactive-stream-p) program-error)
23  t)
24
25(deftest interactive-stream-p.error.3
26  (signals-error (interactive-stream-p *terminal-io* nil)
27                 program-error)
28  t)
Note: See TracBrowser for help on using the repository browser.