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 mask

Like mask to test the exception's what() against.

FUNCTION PTR testfunc

Function to execute

STRING annotation

Message to display when the test fails

Return value

OBJECT

Thrown exception