[#BloombergLP-bslfmt-FormatterTestUtil-05-testEvaluateFormat-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/FormatterTestUtil-05.adoc[FormatterTestUtil&lt;char&gt;]::testEvaluateFormat
:relfileprefix: ../../../
:mrdocs:

`testEvaluateFormat` overloads

== Synopses

Declared in `&lt;bslfmt&lowbar;formattertestutil&period;h&gt;`

Compare `expectedResult` with formatting `value` via `format`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
static
bool
xref:BloombergLP/bslfmt/FormatterTestUtil-05/testEvaluateFormat-00.adoc[testEvaluateFormat](
    xref:bsl/string.adoc[bsl::string]* message,
    bsl::basic&lowbar;string&lowbar;view&lt;char&gt; expectedResult,
    bool alsoTestOracle,
    std::format&lowbar;string&lt;t&lowbar;TYPE&gt; fmt,
    t&lowbar;TYPE&& value);
----

[.small]#xref:BloombergLP/bslfmt/FormatterTestUtil-05/testEvaluateFormat-00.adoc[_» more&period;&period;&period;_]#

Compare formatting of `value` and `arg` against `expectedResult`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;TYPE,
    class t&lowbar;ARG&gt;
static
bool
xref:BloombergLP/bslfmt/FormatterTestUtil-05/testEvaluateFormat-06.adoc[testEvaluateFormat](
    xref:bsl/string.adoc[bsl::string]* message,
    bsl::basic&lowbar;string&lowbar;view&lt;char&gt; expectedResult,
    bool alsoTestOracle,
    std::format&lowbar;string&lt;t&lowbar;TYPE, t&lowbar;ARG&gt; fmt,
    t&lowbar;TYPE&& value,
    t&lowbar;ARG&& arg);
----

[.small]#xref:BloombergLP/bslfmt/FormatterTestUtil-05/testEvaluateFormat-06.adoc[_» more&period;&period;&period;_]#

Compare formatting of `value`, `arg1`, and `arg2` against `expectedResult`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;TYPE,
    class t&lowbar;ARG&lowbar;1,
    class t&lowbar;ARG&lowbar;2&gt;
static
bool
xref:BloombergLP/bslfmt/FormatterTestUtil-05/testEvaluateFormat-0c.adoc[testEvaluateFormat](
    xref:bsl/string.adoc[bsl::string]* message,
    bsl::basic&lowbar;string&lowbar;view&lt;char&gt; expectedResult,
    bool alsoTestOracle,
    std::format&lowbar;string&lt;t&lowbar;TYPE, t&lowbar;ARG&lowbar;1, t&lowbar;ARG&lowbar;2&gt; fmt,
    t&lowbar;TYPE&& value,
    t&lowbar;ARG&lowbar;1&& arg1,
    t&lowbar;ARG&lowbar;2&& arg2);
----

[.small]#xref:BloombergLP/bslfmt/FormatterTestUtil-05/testEvaluateFormat-0c.adoc[_» more&period;&period;&period;_]#

== Return Value

`true` if formatting matches `expectedResult`, else `false`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *message*
| Output parameter for an error description on failure&period;
| *expectedResult*
| Expected formatted output string&period;
| *alsoTestOracle*
| If `true`, also compare against the standard library formatter&period;
| *fmt*
| Compile&hyphen;time format string&period;
| *value*
| Primary value to format&period;
| *arg*
| Additional format argument&period;
| *arg1*
| First additional format argument&period;
| *arg2*
| Second additional format argument&period;
|===


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