Commit 1ed99999 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

Add ASSERT_{TRUE,FALSE} convenience macros

PUBLISHED_FROM=3cd6dd7f04b650ca637788d1017b6b5146c79569
parent 4afebdcb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment