H A D | task.h | 76 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) argument 199 #define ASSERT_EQ(a, b) ASSERT_BASE(a, ==, b, int64_t, PRId64) argument 201 #define ASSERT_GT(a, b) ASSERT_BASE(a, >, b, int64_t, PRId64) argument 203 #define ASSERT_LT(a, b) ASSERT_BASE(a, <, b, int64_t, PRId64) argument 205 #define ASSERT_OK(a) ASSERT_BASE(a, ==, 0, int64_t, PRId64) argument 222 ASSERT_BASE_STR(strcmp(a, b) == 0, a, == , b, char*, "s") 225 ASSERT_BASE_STR(strcmp(a, b) != 0, a, !=, b, char*, "s") 228 ASSERT_BASE_LEN(memcmp(a, b, size) == 0, a, ==, b, s, size) 231 ASSERT_BASE_LEN(memcmp(a, b, size) != 0, a, !=, b, s, size) 234 ASSERT_BASE_HEX(memcmp(a, b, size) == 0, a, ==, b, size) [all …]
|