[#BloombergLP-bslfmt-FormatterTestUtil-06-testEvaluateFormat-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/FormatterTestUtil-06.adoc[FormatterTestUtil&lt;wchar&lowbar;t&gt;]::testEvaluateFormat
:relfileprefix: ../../../
:mrdocs:

Compare the specified `expectedResult` with the result of formatting the specified `value` with the specified `fmt` obtained using a `bslfmt&colon;&colon;formatter` specialization for the (template parameter) `t&lowbar;TYPE`&period; If the specified `alsoTestOracle` is `true`, also compare the `expectedResult` with the result of formatting obtained using a standard library implementation&period; Optionally specify `arg`, `arg1` and `arg2` to be passed to the formatter as additional arguments&period; Return `true` if these strings are equal, otherwise store a description of the error in the specified output `message` and return `false`&period; Note that `fmt` is required to be a constant expression, known at compile time&period;

== Synopses

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

Compare the specified `expectedResult` with the result of formatting the specified `value` with the specified `fmt` obtained using a `bslfmt&colon;&colon;formatter` specialization for the (template parameter) `t&lowbar;TYPE`&period; If the specified `alsoTestOracle` is `true`, also compare the `expectedResult` with the result of formatting obtained using a standard library implementation&period; Optionally specify `arg`, `arg1` and `arg2` to be passed to the formatter as additional arguments&period; Return `true` if these strings are equal, otherwise store a description of the error in the specified output `message` and return `false`&period; Note that `fmt` is required to be a constant expression, known at compile time&period;


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

[.small]#xref:BloombergLP/bslfmt/FormatterTestUtil-06/testEvaluateFormat-08.adoc[_» more&period;&period;&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-06/testEvaluateFormat-04.adoc[testEvaluateFormat](
    xref:bsl/string.adoc[bsl::string]* message,
    bsl::basic&lowbar;string&lowbar;view&lt;wchar&lowbar;t&gt; expectedResult,
    bool alsoTestOracle,
    std::wformat&lowbar;string&lt;t&lowbar;TYPE, t&lowbar;ARG&gt; fmt,
    t&lowbar;TYPE&& value,
    t&lowbar;ARG&& arg);
----

[.small]#xref:BloombergLP/bslfmt/FormatterTestUtil-06/testEvaluateFormat-04.adoc[_» more&period;&period;&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-06/testEvaluateFormat-0d.adoc[testEvaluateFormat](
    xref:bsl/string.adoc[bsl::string]* message,
    bsl::basic&lowbar;string&lowbar;view&lt;wchar&lowbar;t&gt; expectedResult,
    bool alsoTestOracle,
    std::wformat&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-06/testEvaluateFormat-0d.adoc[_» more&period;&period;&period;_]#


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