Return whether two text strings have the same value.
Declared in <bslim_testutil.h>
static
bool
compareText(
bslstl::StringRef lhs,
bslstl::StringRef rhs,
std::ostream& errorStream = bsl::cout);
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.
true if lhs and rhs have the same value, and false otherwise
| Name | Description |
|---|---|
| lhs | left-hand string to compare |
| rhs | right-hand string to compare |
| errorStream | stream for difference description; defaults to bsl::cout |