From 5380ffe1617bb35d99cac86b26495093323f398d Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 14 Jan 2026 21:36:40 +0100 Subject: feat: add readme, license --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..b9c5933 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# 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 + +1. Copy `ls_test.h` to your project. +2. In one C file: + ```c + #define LS_TEST_IMPLEMENTATION + #include "ls_test.h" + ``` +3. Write tests: + ```c + TEST_CASE(my_test) { + ASSERT_EQ(add(1,2), 3, "%d"); + return 0; + } + ``` +4. Add main: + ```c + TEST_MAIN + ``` +5. Compile and run. + +## License + +MIT. -- cgit