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

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

== Synopsis

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

[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
testEvaluateVFormat(
    xref:bsl/string.adoc[bsl::string]* message,
    bsl::basic&lowbar;string&lowbar;view&lt;char&gt; expectedResult,
    bool alsoTestOracle,
    bsl::basic&lowbar;string&lowbar;view&lt;char&gt; fmt,
    t&lowbar;TYPE&& value,
    t&lowbar;ARG&lowbar;1&& arg1,
    t&lowbar;ARG&lowbar;2&& arg2);
----

== Description

Compare the specified `expectedResult` with the result of formatting the specified `value`, `arg1`, and `arg2` 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 standard library implementation&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 *NOT* required to be a compile time constant expression&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*
| Runtime format string (two additional arguments)&period;
| *value*
| Primary value to format&period;
| *arg1*
| First additional format argument&period;
| *arg2*
| Second additional format argument&period;
|===


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