fix: add C-style wide string overload to IsEmpty matcher

This commit is contained in:
Manikandan K. S.
2026-07-04 22:50:12 +05:30
parent 973323ed64
commit df4fdc5cfd
@@ -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"; }