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