Fix example of DescribeMatcher to properly support negation.

PiperOrigin-RevId: 446259163
Change-Id: I3ad5f405f44fc233f5cf5a18a274a9104b5c4ab8
This commit is contained in:
Abseil Team 2022-05-03 12:17:52 -07:00 committed by Copybara-Service
parent 0027cf4703
commit 2a02723b76

View File

@ -5068,7 +5068,8 @@ inline bool ExplainMatchResult(M matcher, const T& value,
// //
// MATCHER_P(XAndYThat, matcher, // MATCHER_P(XAndYThat, matcher,
// "X that " + DescribeMatcher<int>(matcher, negation) + // "X that " + DescribeMatcher<int>(matcher, negation) +
// " and Y that " + DescribeMatcher<double>(matcher, negation)) { // (negation ? " or" : " and") + " Y that " +
// DescribeMatcher<double>(matcher, negation)) {
// return ExplainMatchResult(matcher, arg.x(), result_listener) && // return ExplainMatchResult(matcher, arg.x(), result_listener) &&
// ExplainMatchResult(matcher, arg.y(), result_listener); // ExplainMatchResult(matcher, arg.y(), result_listener);
// } // }