(chibi test)

Simple testing framework adapted from the Chicken test module.

(test [name] expect expr)

Evaluate expr and check that it is equal? to expect. name is used in reporting, and defaults to a printed summary of expr.

(test-equal equal [name] expect expr)

Equivalent to test, using equal for comparison instead of equal?.

(test-assert [name] expr)

Like test but evaluates expr and checks that it's true.

(test-not [name] expr)

Like test but evaluates expr and checks that it's false.

(test-values [name] expect expr)

Like test but expect and expr can both return multiple values.

(test-error [name] expr)

Like test but evaluates expr and checks that it raises an error.

(test-propagate-info name expect expr info)

(test-vars (vars ...) n expect expr ((key . val) ...))

(test-exit)

Exits with a failure status if any tests have failed, and a successful status otherwise.

(test-group name-expr body ...)

Wraps body as a single test group, which can be filtered and summarized separately.

(test-syntax-error)

(test-run expect expr info)

(test-begin [name])

Begin testing a new group until the closing (test-end).

(test-end . o)

Ends testing group introduced with (test-begin), and summarizes the results.

current-test-group

current-test-verbosity

current-test-epsilon

current-test-comparator

current-test-applier

current-test-handler

current-test-skipper

current-test-group-reporter

test-failure-count