Skip to content

Commit 60f8b54

Browse files
committed
tests: be more elaborate about what was expected
1 parent 279113c commit 60f8b54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lib/ReturnMatcher.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ReturnMatcher &ReturnMatcher::operator=(memcached_st *memc_) {
2424
}
2525

2626
string ReturnMatcher::describe() const {
27-
return "is " + to_string(expected)
28-
+ "\n actual: " + memcached_last_error_message(memc);
27+
return "// but '" + to_string(expected) + "' was expected\n"
28+
+ "last error: " + memcached_last_error_message(memc);
2929
}
3030

0 commit comments

Comments
 (0)