Implements the Args<k1, ..., kn>(m) matcher.

This commit is contained in:
zhanyong.wan
2009-06-09 05:42:12 +00:00
parent 240fe5a0cf
commit 2661c6821a
8 changed files with 597 additions and 29 deletions

View File

@@ -795,9 +795,9 @@ class Expectation : public ExpectationBase {
DescribeMatchFailureTupleTo(matchers_, args, os);
}
if (!extra_matcher_.Matches(args)) {
*os << " Expected: ";
*os << " Expected args: ";
extra_matcher_.DescribeTo(os);
*os << "\n Actual: false";
*os << "\n Actual: don't match";
internal::ExplainMatchResultAsNeededTo<const ArgumentTuple&>(
extra_matcher_, args, os);