From 1ed99999bd6cff01fc20aca7507569798b6e9689 Mon Sep 17 00:00:00 2001
From: Deomid Ryabkov <rojer@cesanta.com>
Date: Tue, 6 Feb 2018 16:12:02 +0000
Subject: [PATCH] Add ASSERT_{TRUE,FALSE} convenience macros

PUBLISHED_FROM=3cd6dd7f04b650ca637788d1017b6b5146c79569
---
 src/common/test_util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/test_util.h b/src/common/test_util.h
index 88352660b..4a2439fe1 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
-- 
GitLab