↧
Answer by Toby Speight for A simple unit test library for C
The header doesn't need to include anything except <stddef.h> (to define size_t).These two externs are never used:extern size_t passes;extern size_t failed;We should just delete them - or perhaps...
View ArticleA simple unit test library for C
I have rolled this simple unit test library for C:com_github_coderodde_my_assert.h:#ifndef COM_GITHUB_CODERODDE_MY_ASSERT_H#define COM_GITHUB_CODERODDE_MY_ASSERT_H#include <stdbool.h>#include...
View Article