From: Michael Wallner Date: Thu, 2 Mar 2023 11:25:27 +0000 (+0100) Subject: tests: be more elaborate about what was expected X-Git-Tag: 1.1.4~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=60f8b5453b71e6a6252641607ce337739794d907;p=awesomized%2Flibmemcached tests: be more elaborate about what was expected --- diff --git a/test/lib/ReturnMatcher.cpp b/test/lib/ReturnMatcher.cpp index 926214e7..7a073f29 100644 --- a/test/lib/ReturnMatcher.cpp +++ b/test/lib/ReturnMatcher.cpp @@ -24,7 +24,7 @@ ReturnMatcher &ReturnMatcher::operator=(memcached_st *memc_) { } string ReturnMatcher::describe() const { - return "is " + to_string(expected) - + "\n actual: " + memcached_last_error_message(memc); + return "// but '" + to_string(expected) + "' was expected\n" + + "last error: " + memcached_last_error_message(memc); }