From 4a4e956c26d2f73534e504c36e2ca6a2617644b8 Mon Sep 17 00:00:00 2001 From: Nicolas Dato Date: Sun, 13 Oct 2024 19:57:49 -0300 Subject: adding tests for the main library --- test/test.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/test.h (limited to 'test/test.h') 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 +#include + +#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__ -- cgit v1.2.3