mirror of
https://github.com/google/googletest.git
synced 2026-07-30 16:26:24 +08:00
fix: add C-style wide string overload to IsEmpty matcher
This commit is contained in:
parent
973323ed64
commit
df4fdc5cfd
@ -79,6 +79,12 @@ class [[nodiscard]] IsEmptyMatcher {
|
|||||||
return MatchAndExplain(std::string(s), listener);
|
return MatchAndExplain(std::string(s), listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Matches C-style wide strings.
|
||||||
|
bool MatchAndExplain(const wchar_t* s,
|
||||||
|
MatchResultListener* listener) const {
|
||||||
|
return MatchAndExplain(std::wstring(s), listener);
|
||||||
|
}
|
||||||
|
|
||||||
// Describes what this matcher matches.
|
// Describes what this matcher matches.
|
||||||
void DescribeTo(std::ostream* os) const { *os << "is empty"; }
|
void DescribeTo(std::ostream* os) const { *os << "is empty"; }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user