diff options
| author | Lion Kortlepel <[email protected]> | 2026-01-14 21:36:40 +0100 |
|---|---|---|
| committer | Lion Kortlepel <[email protected]> | 2026-01-14 21:36:40 +0100 |
| commit | 5380ffe1617bb35d99cac86b26495093323f398d (patch) | |
| tree | 5f3c200447df51f6b310f977eed9b415131b3368 /README.md | |
| parent | 83d0eb6a0a6718b80cfd1a20da43d972b03928dc (diff) | |
| download | test-5380ffe1617bb35d99cac86b26495093323f398d.tar.zst test-5380ffe1617bb35d99cac86b26495093323f398d.zip | |
feat: add readme, license
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 33 |
1 files changed, 33 insertions, 0 deletions
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. |
