diff options
Diffstat (limited to 'tests/helpers.h')
| -rw-r--r-- | tests/helpers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/helpers.h b/tests/helpers.h index 39274e4..c9d9819 100644 --- a/tests/helpers.h +++ b/tests/helpers.h @@ -6,6 +6,7 @@ struct FILE; typedef struct FILE FILE; int fprintf(FILE*, const char*, ...); extern FILE* stderr; +int strcmp(const char*, const char*); #define ASSERT(a, file, line) \ do { \ @@ -16,5 +17,6 @@ extern FILE* stderr; } while (0) #define ASSERT_EQ(a, b) ASSERT((a) == (b), __FILE__, __LINE__) +#define ASSERT_EQ_STR(a, b) ASSERT(strcmp((a), (b)) == 0, __FILE__, __LINE__) #endif |
