TestRejectedLike (open)
Waits until a promise fulfulls, and tests if it is rejected
Syntax
LOADLIB "mod::system/lib/testframework.whlib";
OBJECT FUNCTION TestRejectedLike(STRING mask, OBJECT promise, STRING annotation)
Parameters
STRING mask
Like mask to test the exception's what() against
OBJECT promise
Promise to test
STRING annotation
Message to display when the test fails
Return value
OBJECT
Returns the exception the promise was rejected with