[#BloombergLP-bsls-AssertTest-tryProbe] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AssertTest.adoc[AssertTest]::tryProbe :relfileprefix: ../../../ :mrdocs: 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`. == Synopsis Declared in `<bsls_asserttest.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool tryProbe( char expectedResult, char expectedLevel); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#