[#BloombergLP-bsls-AssertTest-isValidExpected]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AssertTest.adoc[AssertTest]::isValidExpected
:relfileprefix: ../../../
:mrdocs:

Return whether `specChar` is a valid expected&hyphen;result specifier&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isValidExpected(char specChar);
----

== Description

Return `true` if the specified `specChar` represents a valid description of the expected result, and `false` otherwise&period; `specChar` is valid if it is either an (UPPERCASE) `P` (for Pass) or `F` (for Fail)&period; Note that `P` is intended to represent the expectation that the function under test will &quot;pass&quot; by satisfying all preconditions, including the specific one guarded by the assertion under test, while an `F` is intended to indicate the expectation that the specific assertion under test will &quot;fail&quot; (thereby triggering a call to the currently&hyphen;installed assertion&hyphen;failure handler)&period;

== Return Value

`true` if `specChar` is a valid expected result, else `false`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *specChar*
| expected&hyphen;result character (`P` or `F`)
|===


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