diff options
author | sanine <sanine.not@pm.me> | 2021-12-21 20:58:51 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2021-12-21 20:58:51 -0600 |
commit | 1e3ca08048542a29d04ecc2c1dbc0e5ba8421c27 (patch) | |
tree | 95e5864e42c2407bad18fc43818119e60c123f85 /tests/helpers.c | |
parent | b712a7ac4c6a7a8bb1d81d0adad8f98084b4d2fe (diff) |
strip things down in preparation for refactor
Diffstat (limited to 'tests/helpers.c')
-rw-r--r-- | tests/helpers.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/helpers.c b/tests/helpers.c new file mode 100644 index 0000000..42a0724 --- /dev/null +++ b/tests/helpers.c @@ -0,0 +1,15 @@ +#include <stdio.h> + +#include "lily-test.h" +#include "tests.h" + +void run_test(const char *name, const char* (*test)()) +{ + printf("%s... ", name); + const char *result = test(); + if (result != 0) { + printf("FAILED (%s)\n", result); + } + else + printf("OK\n"); +} |