broadcast-stream-streams.lsp 676 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
;-*- Mode:     Lisp -*-
;;;; Author:   Paul Dietz
;;;; Created:  Thu Jan 29 22:06:28 2004
;;;; Contains: Tests of BROADCAST-STREAM-STREAMS

(in-package :cl-test)

(deftest broadcast-stream-streams.1
  (broadcast-stream-streams (make-broadcast-stream))
  nil)

(deftest broadcast-stream-streams.2
  (equalt
   (broadcast-stream-streams (make-broadcast-stream *standard-output*))
   (list *standard-output*))
  t)

(deftest broadcast-stream-streams.error.1
  (signals-error (broadcast-stream-streams) program-error)
  t)

(deftest broadcast-stream-streams.error.2
  (signals-error (broadcast-stream-streams (make-broadcast-stream) nil)
sds's avatar
sds committed
24
                 program-error)
25 26 27 28 29 30
  t)