Add ASSERT_LT() testing macro

This commit is contained in:
Camden Dixie O'Brien 2024-10-26 20:17:18 +01:00
parent ad6c385f42
commit 8a06c7ceb6

View File

@ -29,6 +29,7 @@
#define ASSERT_TRUE(p) ASSERT_FALSE(!(p))
#define ASSERT_EQ(x, y) ASSERT_FALSE((x) != (y))
#define ASSERT_NE(x, y) ASSERT_FALSE((x) == (y))
#define ASSERT_LT(x, y) ASSERT_FALSE((x) <= (y))
#define ASSERT_NULL(p) ASSERT_FALSE(NULL != (p))
#define ASSERT_NOT_NULL(p) ASSERT_FALSE(NULL == (p))
#define ASSERT_MEM_EQ(p, q, n) ASSERT_FALSE(memcmp(p, q, n) != 0)