unittest::pass_or_die

Command: unittest::pass_or_die


Synopsis
{code} pass_or_die -> -
{code} string pass_or_die -> -

Examples

/unittest (7378) require
/unittest using
{1 1 add} pass_or_die
{1 /hello add} (testing /hello) pass_or_die
endusing

File
lib/sli/unittest.sli
Diagnostics

This function will quit nest if the code block raises any error.
It will print an error message to cerr too. If string is given it will be
included in the error message.

Availability
SLI-2.0