Googletest export

Document the fact that MatchAndExplain(T, MatchResultListener*) is supported.

PiperOrigin-RevId: 354172275
This commit is contained in:
Abseil Team
2021-01-27 14:22:59 -08:00
committed by Dino Radaković
parent d114398800
commit 726118846d
2 changed files with 4 additions and 0 deletions

View File

@@ -3618,6 +3618,9 @@ Expected: is divisible by 7
Actual: 23 (the remainder is 2)
```
Tip: for convenience, `MatchAndExplain()` can take a `MatchResultListener*`
instead of `std::ostream*`.
### Writing New Polymorphic Matchers
Expanding what we learned above to *polymorphic* matchers is now just as simple