diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 14:26:06 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 14:26:06 +0200 |
| commit | 88eb8c969f6abe119994c7ab307b9be58ff076a5 (patch) | |
| tree | 3a8fed52b29bdf12f5a6ac65393df8abb0c8f437 /testing.h | |
| parent | a378ff1b173f7a67272e574fb1a2c275ecb9661b (diff) | |
feat: JSON object parsing
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; \ + } |
