mirror of
https://github.com/google/googletest.git
synced 2024-12-26 17:41:03 +08:00
Fix example of DescribeMatcher to properly support negation.
PiperOrigin-RevId: 446259163 Change-Id: I3ad5f405f44fc233f5cf5a18a274a9104b5c4ab8
This commit is contained in:
parent
0027cf4703
commit
2a02723b76
@ -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…
x
Reference in New Issue
Block a user