Add ASSERT_ACCEPTS and ASSERT_REJECTS testing macros
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
#define ASSERT_NOT_NULL(p) ASSERT_FALSE(NULL == (p))
|
||||
#define ASSERT_MEM_EQ(p, q, n) ASSERT_FALSE(memcmp(p, q, n) != 0)
|
||||
|
||||
#define ASSERT_ACCEPTS(dfa, s) ASSERT_TRUE(fsa_accepts(dfa, s, strlen(s)))
|
||||
#define ASSERT_REJECTS(dfa, s) ASSERT_FALSE(fsa_accepts(dfa, s, strlen(s)))
|
||||
|
||||
extern int fail_count;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user