TestThrowsLike (open)
Tests if a function throws an exception that matches a LIKE mask
Syntax
LOADLIB "mod::system/lib/testframework.whlib";
OBJECT FUNCTION TestThrowsLike(STRING mask, FUNCTION PTR testfunc, STRING annotation)Parameters
STRING maskLike mask to test the exception's what() against.
FUNCTION PTR testfuncFunction to execute
STRING annotationMessage to display when the test fails
Return value
OBJECTThrown exception