Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
129afa55
Commit
129afa55
authored
Feb 12, 2004
by
pfdietz
Browse files
Tests for echo stream accessors.
parent
2905fc26
Changes
3
Hide whitespace changes
Inline
Side-by-side
ansi-tests/echo-stream-input-stream.lsp
0 → 100644
View file @
129afa55
;-*- 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)
ansi-tests/echo-stream-output-stream.lsp
0 → 100644
View file @
129afa55
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Thu Feb 12 04:32:33 2004
;;;; Contains: Tests off ECHO-STREAM-OUTPUT-STREAM
(in-package :cl-test)
(deftest echo-stream-output-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-output-stream s))
(list os)))
t)
(deftest echo-stream-output-stream.error.1
(signals-error (echo-stream-output-stream) program-error)
t)
(deftest echo-stream-output-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-output-stream s nil))
program-error)
t)
ansi-tests/load-streams.lsp
View file @
129afa55
...
...
@@ -41,4 +41,6 @@
(load "broadcast-stream-streams.lsp")
(load "make-two-way-stream.lsp")
(load "two-way-stream-input-stream.lsp")
(load "two-way-stream-output-stream.lsp")
\ No newline at end of file
(load "two-way-stream-output-stream.lsp")
(load "echo-stream-input-stream.lsp")
(load "echo-stream-output-stream.lsp")
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment