format.lsp 327 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
;-*- Mode:     Lisp -*-
;;;; Author:   Paul Dietz
;;;; Created:  Mon Feb 23 05:08:17 2004
;;;; Contains: Tests of FORMAT

(in-package :cl-test)


(defun def-format-test (name args result)
  `(deftest ,name
     (equalt
      (with-standard-io-syntax
       (with-output-to-string (s) (format s ,@args)))
      result)
     t))