The library (vicare checks)
aprovides a simple mechanism for
testing Scheme programs. As a primitive example, the expression:
(check (+ 1 1) => 3)
evaluates the expression (+ 1 1)
and compares the result with the
expected result ‘3’ provided after the syntactic keyword ‘=>’.
Then the outcome of this comparison is reported in human–readable form
by printing a message of the form:
(+ 1 1) => 2 ; *** failed *** ; expected result: 3
The library (vicare checks)
is derived by SRFI-78; SRFI-78 lightweight testing, for details.
• checks select: | Selecting tests to be run. | |
• checks eval: | Evaluating code. | |
• checks result: | Handling multiple results. | |
• checks output: | Special output functions. |