diff options
author | Nicolas Dato <nicolas.dato@gmail.com> | 2024-10-13 19:57:49 -0300 |
---|---|---|
committer | Nicolas Dato <nicolas.dato@gmail.com> | 2024-10-13 19:57:49 -0300 |
commit | 4a4e956c26d2f73534e504c36e2ca6a2617644b8 (patch) | |
tree | 72bc232f93514b3206da986e4d4aad1e3024e7d8 /test/test.h | |
parent | 37e2f4899b5d3e594c1080e25c04b40bc29d53a4 (diff) | |
download | libtuberia-4a4e956c26d2f73534e504c36e2ca6a2617644b8.tar.gz |
adding tests for the main library
Diffstat (limited to 'test/test.h')
-rw-r--r-- | test/test.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test.h b/test/test.h new file mode 100644 index 0000000..096470d --- /dev/null +++ b/test/test.h @@ -0,0 +1,9 @@ +#ifndef LIBTUBERIA_TEST_H__ +#define LIBTUBERIA_TEST_H__ + +#include <stdio.h> +#include <stdlib.h> + +#define TEST(a) do { int ret = (a); fprintf(stderr, "%4s %15s:%-4d %-40s : %-40s\n", ret ? "OK" : "FAIL", __FILE__, __LINE__, __func__, # a); if(!ret) { abort(); } } while(0); + +#endif //LIBTUBERIA_TEST_H__ |