source: trunk/source/tests/ansi-tests/stream-error-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: 653 bytes
RevLine 
[8991]1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Feb 14 20:51:33 2004
4;;;; Contains: Tests of STREAM-ERROR-STREAM
5
6(in-package :cl-test)
7
8(deftest stream-error-stream.1
9  (with-input-from-string
10   (s "")
11   (handler-case
12    (read-char s)
13    (stream-error (c) (eqlt (stream-error-stream c) s))))
14  t)
15
16;;; Error tests
17
18(deftest stream-error-stream.error.1
19  (signals-error (stream-error-stream) program-error)
20  t)
21
22
23(deftest stream-error-stream.error.2
24  (signals-error
25   (with-input-from-string
26    (s "")
27    (handler-case
28     (read-char s)
29     (stream-error (c) (stream-error-stream c nil))))
30   program-error)
31  t)
32
33
34                         
Note: See TracBrowser for help on using the repository browser.