change MemEq output
This commit is contained in:
3
CuTest.c
3
CuTest.c
@@ -245,13 +245,12 @@ void CuAssertMemEquals_LineMsg(CuTest* tc, const char* file, int line, const cha
|
|||||||
char common[len * 2 + 1];
|
char common[len * 2 + 1];
|
||||||
/* we will build the "common" mem string
|
/* we will build the "common" mem string
|
||||||
*/
|
*/
|
||||||
printf("len=%d diffc = %lu\n", len, diffc);
|
|
||||||
for (i = 0; i < diffc; ++i)
|
for (i = 0; i < diffc; ++i)
|
||||||
sprintf(common + i * 2, "%02X", *(expected + i));
|
sprintf(common + i * 2, "%02X", *(expected + i));
|
||||||
/* and final message
|
/* and final message
|
||||||
*/
|
*/
|
||||||
sprintf(buf,
|
sprintf(buf,
|
||||||
"expected <0x%s-%02X...> but was <0x%s-%02X...> (differ char %lu)\n",
|
"expected <0x%s[%02X]...> but was <0x%s[%02X]...> (differ at char %lu)\n",
|
||||||
common, *(expected + i),
|
common, *(expected + i),
|
||||||
common, *(actual + i),
|
common, *(actual + i),
|
||||||
diffc);
|
diffc);
|
||||||
|
Reference in New Issue
Block a user