LS Test Harness
Minimal, single-header unit test framework for C.
- Auto-registers test functions.
- Header-only.
- Macros:
ASSERT_EQ,ASSERT, etc. - ANSI C with minimal extensions.
Quick Start
- Copy
ls_test.hto your project. - In one C file:
#define LS_TEST_IMPLEMENTATION #include "ls_test.h" - Write tests:
TEST_CASE(my_test) { ASSERT_EQ(add(1,2), 3, "%d"); return 0; } - Add main:
TEST_MAIN - Compile and run.
License
MIT.
