| Line | |
|---|
| 1 | ;;;; Tests for <https://github.com/armedbear/abcl/issues/512> |
|---|
| 2 | (in-package :cl-user) |
|---|
| 3 | |
|---|
| 4 | (unless (ignore-errors |
|---|
| 5 | (asdf:make :trivial-gray-streams)) |
|---|
| 6 | (asdf:make :abcl-quicklisp) |
|---|
| 7 | (ql:quickload :trivial-gray-streams)) |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | (defclass out-stream |
|---|
| 11 | (trivial-gray-streams:fundamental-character-output-stream) |
|---|
| 12 | ()) |
|---|
| 13 | |
|---|
| 14 | (defclass in-stream |
|---|
| 15 | (trivial-gray-streams:fundamental-character-input-stream) |
|---|
| 16 | ()) |
|---|
| 17 | |
|---|
| 18 | (prove:plan 4) |
|---|
| 19 | |
|---|
| 20 | (prove:ok |
|---|
| 21 | (make-two-way-stream (make-instance 'in-stream) (make-instance 'out-stream)) |
|---|
| 22 | "Create TWO-WAY-STREAM from Gray streams") |
|---|
| 23 | |
|---|
| 24 | (prove:ok |
|---|
| 25 | (make-broadcast-stream (make-instance 'out-stream)) |
|---|
| 26 | "Create BROADCAST-STREAM from Gray stream") |
|---|
| 27 | |
|---|
| 28 | (prove:ok |
|---|
| 29 | (make-concatenated-stream (make-instance 'in-stream)) |
|---|
| 30 | "Create CONCATENATED-STREAM from Gray stream") |
|---|
| 31 | |
|---|
| 32 | (prove:ok |
|---|
| 33 | (make-echo-stream (make-instance 'in-stream) (make-instance 'out-stream)) |
|---|
| 34 | "Create ECHO-STREAM from Gray streams") |
|---|
| 35 | |
|---|
| 36 | (prove:finalize) |
|---|
Note: See
TracBrowser
for help on using the repository browser.