File: echo-stream-input-stream.lsp

package info (click to toggle)
cl-ansi-tests 20071218-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,000 kB
  • ctags: 22,025
  • sloc: lisp: 134,798; makefile: 144
file content (27 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;-*- Mode:     Lisp -*-
;;;; Author:   Paul Dietz
;;;; Created:  Thu Feb 12 04:30:40 2004
;;;; Contains: Tests of ECHO-STREAM-INPUT-STREAM

(in-package :cl-test)

(deftest echo-stream-input-stream.1
  (let* ((is (make-string-input-stream "foo"))
	 (os (make-string-output-stream))
	 (s (make-echo-stream is os)))
    (equalt (multiple-value-list (echo-stream-input-stream s))
	    (list is)))
  t)

(deftest echo-stream-input-stream.error.1
  (signals-error (echo-stream-input-stream) program-error)
  t)

(deftest echo-stream-input-stream.error.2
  (signals-error (let* ((is (make-string-input-stream "foo"))
			(os (make-string-output-stream))
			(s (make-echo-stream is os)))
		   (echo-stream-input-stream s nil))
		 program-error)
  t)