Fix example of DescribeMatcher to properly support negation.

PiperOrigin-RevId: 446259163
Change-Id: I3ad5f405f44fc233f5cf5a18a274a9104b5c4ab8
pull/3827/head
Abseil Team 3 years ago committed by Copybara-Service
parent 0027cf4703
commit 2a02723b76
  1. 3
      googlemock/include/gmock/gmock-matchers.h

@ -5068,7 +5068,8 @@ inline bool ExplainMatchResult(M matcher, const T& value,
//
// MATCHER_P(XAndYThat, matcher,
// "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) &&
// ExplainMatchResult(matcher, arg.y(), result_listener);
// }

Loading…
Cancel
Save