Package: lisp-unit

Macro assert-eq

Lambda List

assert-eq (expected form &rest extras)

Arguments

expected -- the expected value
form -- an expression
extras -- to be printed if the test fails

Return Value

Return value is unspecified.

Details

Assertion with the predicate eq.

All of the assertion forms are macros. They tally a failure if the associated predication returns false. Assertions can be made about return values, printed output, macro expansions, and even expected errors. Assertion form arguments are evaluated in the local lexical environment.

All assertion forms allow to include additional expressions extras at the end of the form. These expressions and their values will be printed only when the test fails.
 

See also