From 60f8b5453b71e6a6252641607ce337739794d907 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 2 Mar 2023 12:25:27 +0100 Subject: [PATCH] tests: be more elaborate about what was expected --- test/lib/ReturnMatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.30.2