[#BloombergLP-bslfmt-FormatterTestUtil-06-testEvaluateFormat-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/FormatterTestUtil-06.adoc[FormatterTestUtil<wchar_t>]::testEvaluateFormat :relfileprefix: ../../../ :mrdocs: Compare the specified `expectedResult` with the result of formatting the specified `value` with the specified `fmt` obtained using a `bslfmt::formatter` specialization for the (template parameter) `t_TYPE`. If the specified `alsoTestOracle` is `true`, also compare the `expectedResult` with the result of formatting obtained using a standard library implementation. Optionally specify `arg`, `arg1` and `arg2` to be passed to the formatter as additional arguments. Return `true` if these strings are equal, otherwise store a description of the error in the specified output `message` and return `false`. Note that `fmt` is required to be a constant expression, known at compile time. == Synopses Declared in `<bslfmt_formattertestutil.h>` Compare the specified `expectedResult` with the result of formatting the specified `value` with the specified `fmt` obtained using a `bslfmt::formatter` specialization for the (template parameter) `t_TYPE`. If the specified `alsoTestOracle` is `true`, also compare the `expectedResult` with the result of formatting obtained using a standard library implementation. Optionally specify `arg`, `arg1` and `arg2` to be passed to the formatter as additional arguments. Return `true` if these strings are equal, otherwise store a description of the error in the specified output `message` and return `false`. Note that `fmt` is required to be a constant expression, known at compile time. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> static bool xref:BloombergLP/bslfmt/FormatterTestUtil-06/testEvaluateFormat-08.adoc[testEvaluateFormat]( xref:bsl/string.adoc[bsl::string]* message, bsl::basic_string_view<wchar_t> expectedResult, bool alsoTestOracle, std::wformat_string<t_TYPE> fmt, t_TYPE&& value); ---- [.small]#xref:BloombergLP/bslfmt/FormatterTestUtil-06/testEvaluateFormat-08.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_ARG> static bool xref:BloombergLP/bslfmt/FormatterTestUtil-06/testEvaluateFormat-04.adoc[testEvaluateFormat]( xref:bsl/string.adoc[bsl::string]* message, bsl::basic_string_view<wchar_t> expectedResult, bool alsoTestOracle, std::wformat_string<t_TYPE, t_ARG> fmt, t_TYPE&& value, t_ARG&& arg); ---- [.small]#xref:BloombergLP/bslfmt/FormatterTestUtil-06/testEvaluateFormat-04.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_ARG_1, class t_ARG_2> static bool xref:BloombergLP/bslfmt/FormatterTestUtil-06/testEvaluateFormat-0d.adoc[testEvaluateFormat]( xref:bsl/string.adoc[bsl::string]* message, bsl::basic_string_view<wchar_t> expectedResult, bool alsoTestOracle, std::wformat_string<t_TYPE, t_ARG_1, t_ARG_2> fmt, t_TYPE&& value, t_ARG_1&& arg1, t_ARG_2&& arg2); ---- [.small]#xref:BloombergLP/bslfmt/FormatterTestUtil-06/testEvaluateFormat-0d.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#