source: trunk/source/tests/ansi-tests/room.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: 811 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sun Dec 12 09:20:47 2004
4;;;; Contains: Tests of ROOM
5
6(in-package :cl-test)
7
8(deftest room.1
9  (let ((s (with-output-to-string
10             (*standard-output*)
11             (room))))
12    (not (zerop (length s))))
13  t)
14
15(deftest room.2
16  (let ((s (with-output-to-string
17             (*standard-output*)
18             (room nil))))
19    (not (zerop (length s))))
20  t)
21
22(deftest room.3
23  (let ((s (with-output-to-string
24             (*standard-output*)
25             (room :default))))
26    (not (zerop (length s))))
27  t)
28
29(deftest room.4
30  (let ((s (with-output-to-string
31             (*standard-output*)
32             (room t))))
33    (not (zerop (length s))))
34  t)
35
36;;; Error tests
37
38(deftest room.errpr.1
39  (signals-error (with-output-to-string (*standard-output*) (room nil nil)) program-error)
40  t)
41
42
43
44
45
46
Note: See TracBrowser for help on using the repository browser.