add extra space around comparison operators for assert messages
The following argument was made in the report of bug #102 to
include extra space around the comparison operator in
assert messages:
When ck_assert_int_gt(1 + 2, 3 + 4) fails, it outputs a string like this:
Assertion '1 + 2>3 + 4' failed: 1 + 2==3, 3 + 4==7
This doesn’t look nice, since most programmers write spaces around comparison operators.
Therefore, the assertion message should do the same.
Assertion '1 + 2 > 3 + 4' failed: 1 + 2 == 3, 3 + 4 == 7
For condensed code, it would look like this:
Assertion '1+2 > 3+4' failed: 1+2 == 3, 3+4 == 7
I think the versions with the spaces look nicer than those without.
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1199
64e312b2-a51f-0410-8e61-
82d0ca0eb02a