"git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "577daedd51fe29b337dc5e5fb4d29a9129350f1a"
Commit 2a02723b authored by Abseil Team's avatar Abseil Team Committed by Copybara-Service
Browse files

Fix example of DescribeMatcher to properly support negation.

PiperOrigin-RevId: 446259163
Change-Id: I3ad5f405f44fc233f5cf5a18a274a9104b5c4ab8
parent 0027cf47
...@@ -5068,7 +5068,8 @@ inline bool ExplainMatchResult(M matcher, const T& value, ...@@ -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);
// } // }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment