summaryrefslogtreecommitdiff
path: root/src/lily-test.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-12-21 01:09:07 -0600
committersanine <sanine.not@pm.me>2021-12-21 01:09:07 -0600
commitaa206b75f8c89ab5e0fdeede558775ae7c072113 (patch)
treebde11cad316c377aa0433793175f9eb9eaaf667e /src/lily-test.h
parent781b61d0d0131c880d54bd9667fb0b9c81643ba7 (diff)
implement lily_assert_equal()
Diffstat (limited to 'src/lily-test.h')
-rw-r--r--src/lily-test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lily-test.h b/src/lily-test.h
index 8ce0f41..e8faf54 100644
--- a/src/lily-test.h
+++ b/src/lily-test.h
@@ -26,5 +26,7 @@ struct lily_test_data_t {
"\n" lily_indent " [" __FILE__ ":" STR(__LINE__) "]"; \
} while(0)
+#define lily_assert_equal(a, b) lily_assert((a) == (b), "'" #a "' is not equal to '" #b "'")
+
#endif