[#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&semi; otherwise, return `false`&period; If `expectedResult` is anything other than `P` or `F` (for Fail), this function reports the invalid `expectedResult` value to `stdout` before returning `false`&period; If `expectedlevel` is anything other than `S`, `A`, `O`, or `I`, this function reports the invalid `expectedLevel` value to `stdout` before returning `false`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;asserttest&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
tryProbe(
    char expectedResult,
    char expectedLevel);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
