[#BloombergLP-bdlt-FormatTestUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::FormatTestUtil :relfileprefix: ../../ :mrdocs: Namespace for static functions that test formatting of `bdlt` value types. == Synopsis Declared in `<bdlt_formattestutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct FormatTestUtil; ---- == Description This `struct` serves as a namespace for static functions to facilitate testing of formatting of `bdlt` value types ‐‐ used in the implementation of the above macros, and for conversion between `bsl::string` and `bsl::wstring`. == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlt/FormatTestUtil/narrow.adoc[`narrow`] | Convert `viewIn` from `wchar_t` to `char` and return a `bsl::string`. | xref:BloombergLP/bdlt/FormatTestUtil/testFormat.adoc[`testFormat`] | Compare `bsl::format` output of `value` to an expected string. | xref:BloombergLP/bdlt/FormatTestUtil/testFormatArg.adoc[`testFormatArg`] | Compare `bsl::format` output of `value` and `arg` to an expected string. | xref:BloombergLP/bdlt/FormatTestUtil/widen.adoc[`widen`] | Load the wide‐string version of `viewIn` into `result`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#