Skip to content

Record expanded values in results when equality assertions fail

Originally https://sourceforge.net/p/cunit/feature-requests/10/

Verbose message in CU_ASSERT_EQUAL()

It would be of great help to provide more information in the message when CU_ASSERT_EQUAL fails. For example: "Expected: A, actual: B" instead of the line number and the code. This way it is possible to determine what went wrong without using the debugger.

I rather like this. Doing this for anything beyond the specific equality assertions would be very hard. It might however be possible to do this.