[#BloombergLP-bslim-TestUtil-compareText] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/TestUtil.adoc[TestUtil]::compareText :relfileprefix: ../../../ :mrdocs: Return `true` if the specified `lhs` has the same value as the specified `rhs`, and `false` otherwise. Optionally specify an `errorStream` on which, if `lhs` and `rhs` are not the same', a description of how the two strings differ will be written. If `errorStream` is not supplied, `stdout` is used. == Synopsis Declared in `<bslim_testutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool compareText( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] lhs, xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] rhs, std::ostream& errorStream = bsl::cout); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#