From faafb95fdda07167770c7823f6b37d99474e1836 Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 27 Dec 2021 17:24:28 -0600 Subject: add test for lily_assert_false --- lily-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lily-test.c') diff --git a/lily-test.c b/lily-test.c index 9b54021..cae4657 100644 --- a/lily-test.c +++ b/lily-test.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "lily-test.h" struct lily_globals_t _lily_globals; @@ -66,7 +67,7 @@ void _lily_assert_true(const char *statement, bool value, const char *location) void _lily_assert_false(const char *statement, bool value, const char *location) { - lily_assert_msg(value, location, + lily_assert_msg(!value, location, "%s is not false", statement); } -- cgit v1.2.1