diff --git a/src/common/test_util.h b/src/common/test_util.h index 88352660..4a2439fe 100644 --- a/src/common/test_util.h +++ b/src/common/test_util.h @@ -51,6 +51,8 @@ void _strfail(const char *a, const char *e, int len); num_tests++; \ if (!(expr)) FAIL(#expr, __LINE__); \ } while (0) +#define ASSERT_TRUE(expr) ASSERT(expr) +#define ASSERT_FALSE(expr) ASSERT(!(expr)) /* * Run test function, use its name as the test name to print