From 93f6b1b0300fb9e3fcea523581535525f3721500 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 31 May 2023 10:45:25 +0200 Subject: [PATCH] Adding tests/include/testing.h --- tests/include/testing.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/include/testing.h diff --git a/tests/include/testing.h b/tests/include/testing.h new file mode 100644 index 0000000..6a7206e --- /dev/null +++ b/tests/include/testing.h @@ -0,0 +1,8 @@ +#ifndef LIBANTELOPE_TESTING_H +#define LIBANTELOPE_TESTING_H + +#include + +#define CHECK_PRED(a,b,pred) if (pred) { CHECK_EQ((a), (b)); } else { CHECK_NE((a), (b)); } + +#endif /* LIBANTELOPE_TESTING_H */ \ No newline at end of file