source: trunk/source/tests/ansi-tests/get-output-stream-string.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: 756 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Feb 14 09:48:46 2004
4;;;; Contains: Tests of GET-OUTPUT-STREAM-STRING
5
6(in-package :cl-test)
7
8;; this function is used extensively elsewhere in the test suite
9
10(deftest get-output-stream-string.1
11  (let ((s (make-string-output-stream)))
12    (values
13     (get-output-stream-string s)
14     (write-string "abc" s)
15     (write-string "def" s)
16     (get-output-stream-string s)
17     (get-output-stream-string s)))
18  "" "abc" "def" "abcdef" "")
19
20;;; Error cases
21
22(deftest get-output-stream-string.error.1
23  (signals-error (get-output-stream-string) t)
24  t)
25
26(deftest get-output-stream-string.error.2
27  (signals-error (get-output-stream-string (make-string-output-stream) nil) t)
28  t)
29
30
31
32     
Note: See TracBrowser for help on using the repository browser.