source: trunk/source/tests/ansi-tests/two-way-stream-input-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: 768 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Thu Feb 12 04:22:50 2004
4;;;; Contains: Tests of TWO-WAY-STREAM-INPUT-STREAM
5
6(in-package :cl-test)
7
8(deftest two-way-stream-input-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-input-stream s))
13            (list is)))
14  t)
15
16(deftest two-way-stream-input-stream.error.1
17  (signals-error (two-way-stream-input-stream) program-error)
18  t)
19
20(deftest two-way-stream-input-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-input-stream s nil))
25                 program-error)
26  t)
Note: See TracBrowser for help on using the repository browser.