This feature adds the following functions:

 - set_malloc()
 - set_free()

Which is a safe malloc wrapper, that frees all memory after a test has finished.

Reviewed-on: #1
This commit is contained in:
2025-06-25 23:17:02 +00:00
parent 3f78db4cb7
commit ed41c04209
10 changed files with 377 additions and 70 deletions

View File

@@ -2,15 +2,11 @@
Tiny C testing framework.
## Build
## Building a test.
Building is quite simple. To build a test `test_fac.c` just pick your favourite compiler and run.
To build a test, first build the library. Then link it to the `test.c` via:
gcc Small-Enough-Tester/set.c test_fac.c -I Small-Enough-Tester/ -D COLORIZED -lm -o test_fac
Running a test is equally simple just execute the compiled binary.
./test_fac
gcc src/*.c test.c -o test
## LICENSE