From 88eb8c969f6abe119994c7ab307b9be58ff076a5 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 21 Jul 2025 14:26:06 +0200 Subject: feat: JSON object parsing --- testing.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testing.h') diff --git a/testing.h b/testing.h index cb40294..0b479c9 100644 --- a/testing.h +++ b/testing.h @@ -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; \ + } -- cgit v1.3