~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to ansi-tests/stream-error-stream.lsp

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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