Package: lisp-unit

Function fail

Lambda List

fail (str &rest args)

Arguments

str -- a format string
args -- the args to be printed

Details

Signals a failure.

Calling this function tallies a failure. A string describing the failure is constructed by calling (format nil format-string [form1 form2 ...]).

Example
  (when (> (length queue) 100)
    (fail ''Queue exceeded expected size by '' (- (length queue) 100)))