From 8a06c7ceb653355fbfbd1a658d78d8bc32c65893 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sat, 26 Oct 2024 20:17:18 +0100 Subject: [PATCH] Add ASSERT_LT() testing macro --- tests/testing.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testing.h b/tests/testing.h index 2291441..c319285 100644 --- a/tests/testing.h +++ b/tests/testing.h @@ -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)