test-assert

[syntax] test-assert [test-name] expression

SRFI-64: evaluates expression and then the test passes if the result is true. If the result is false, a test failure is reported. The test also fails if an exception is raised, assuming the implementation has a way to catch exceptions. test-name is the name of the test case.

It is an error to invoke test-assert if there is no current test runner.

See also test-runner-current.