From aa206b75f8c89ab5e0fdeede558775ae7c072113 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 21 Dec 2021 01:09:07 -0600 Subject: implement lily_assert_equal() --- src/lily-test.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lily-test.h') 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 -- cgit v1.2.1