mirror of
https://github.com/google/googletest.git
synced 2026-07-21 14:43:35 +00:00
fix: add C-style wide string overload to IsEmpty matcher
This commit is contained in:
@@ -79,6 +79,12 @@ class [[nodiscard]] IsEmptyMatcher {
|
||||
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.
|
||||
void DescribeTo(std::ostream* os) const { *os << "is empty"; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user