[#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&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;formattestutil&period;h&gt;`

[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 &hyphen;&hyphen; used in the implementation of the above macros, and for conversion between `bsl&colon;&colon;string` and `bsl&colon;&colon;wstring`&period;

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/FormatTestUtil/narrow.adoc[`narrow`] 
| Convert `viewIn` from `wchar&lowbar;t` to `char` and return a `bsl&colon;&colon;string`&period;
| xref:BloombergLP/bdlt/FormatTestUtil/testFormat.adoc[`testFormat`] 
| Compare `bsl&colon;&colon;format` output of `value` to an expected string&period;
| xref:BloombergLP/bdlt/FormatTestUtil/testFormatArg.adoc[`testFormatArg`] 
| Compare `bsl&colon;&colon;format` output of `value` and `arg` to an expected string&period;
| xref:BloombergLP/bdlt/FormatTestUtil/widen.adoc[`widen`] 
| Load the wide&hyphen;string version of `viewIn` into `result`&period;
|===



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