Return whether a pass‐probe specification is valid.
Synopsis
Declared in <bsls_asserttest.h>
static
bool
tryProbe(
char expectedResult,
char expectedLevel);
Description
Return true if the specified expectedResult is P (for Pass) and the specified expectedLevel is a valid level; otherwise, return false. If expectedResult is anything other than P or F (for Fail), this function reports the invalid expectedResult value to stdout before returning false. If expectedlevel is anything other than S, A, O, or I, this function reports the invalid expectedLevel value to stdout before returning false.
Return Value
true if the pass‐probe is valid, else false
Parameters
Name |
Description |
expectedResult |
expected outcome ( |
expectedLevel |
expected assertion level ( |
Created with MrDocs