unittest::pass_or_die - Execute a code block and quit with exit code 2 if it fails.
{code} pass_or_die -> -
{code} string pass_or_die -> -
/unittest (7378) require
/unittest using
{1 1 add} pass_or_die
{1 /hello add} (testing /hello) pass_or_die
endusing
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.
SLI-2.0
R. Kupper
2-jul-2008
/var/www/debian/nest/nest-simulator-2.20.0/lib/sli/unittest.sli