source: trunk/source/tests/ansi-tests/echo-stream-output-stream.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: 749 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Thu Feb 12 04:32:33 2004
4;;;; Contains: Tests off ECHO-STREAM-OUTPUT-STREAM
5
6(in-package :cl-test)
7
8(deftest echo-stream-output-stream.1
9  (let* ((is (make-string-input-stream "foo"))
10         (os (make-string-output-stream))
11         (s (make-echo-stream is os)))
12    (equalt (multiple-value-list (echo-stream-output-stream s))
13            (list os)))
14  t)
15
16(deftest echo-stream-output-stream.error.1
17  (signals-error (echo-stream-output-stream) program-error)
18  t)
19
20(deftest echo-stream-output-stream.error.2
21  (signals-error (let* ((is (make-string-input-stream "foo"))
22                        (os (make-string-output-stream))
23                        (s (make-echo-stream is os)))
24                   (echo-stream-output-stream s nil))
25                 program-error)
26  t)
Note: See TracBrowser for help on using the repository browser.