summaryrefslogtreecommitdiff
path: root/lily-test.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-12-27 17:24:28 -0600
committersanine <sanine.not@pm.me>2021-12-27 17:24:28 -0600
commitfaafb95fdda07167770c7823f6b37d99474e1836 (patch)
tree49644011b1a42e2559b78c8d3745f4c38280437f /lily-test.c
parent0e16dbc5c78a2715fbbda5cae8a3b422d721b871 (diff)
add test for lily_assert_false
Diffstat (limited to 'lily-test.c')
-rw-r--r--lily-test.c3
1 files changed, 2 insertions, 1 deletions
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 <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#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);
}