From 59cc5384defab6cb7a949589032963ff3965edfe Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 14 Mar 2021 21:28:21 +0100 Subject: test: Improve type-safety of test fns. --- test/checker.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/checker.cc') diff --git a/test/checker.cc b/test/checker.cc index 2a06666..d5afa87 100644 --- a/test/checker.cc +++ b/test/checker.cc @@ -58,11 +58,11 @@ void check_exceed_len() { int main() { TEST_INIT; - TEST(check_dec); - TEST(check_hex); - TEST(check_ptr); - TEST(check_null); - TEST(check_exact_len); - TEST(check_exceed_len); - return TEST_FAIL_CNT; + TEST_ADD(check_dec); + TEST_ADD(check_hex); + TEST_ADD(check_ptr); + TEST_ADD(check_null); + TEST_ADD(check_exact_len); + TEST_ADD(check_exceed_len); + return TEST_RUN; } -- cgit v1.2.3