diff options
Diffstat (limited to 'testing.h')
| -rw-r--r-- | testing.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -5,3 +5,9 @@ fprintf(stderr, "Assertion failed: %s at %s:%d in %s()\n", #fact, __FILE__, __LINE__, __func__); \ return 1; \ } + + # define t_assert_equal(a, b) \ + if (!(a == b)) { \ + fprintf(stderr, "Assertion failed: %d (%s) != %d (%s) at %s:%d in %s()\n", a, #a, b, #b, __FILE__, __LINE__, __func__); \ + return 1; \ + } |
