bool _test_assert_sequence(unsigned point, char *expected) { char *cp = tokens_buffer; while (cp < tokp) { if (*cp++ != *expected++) return _test_fail(point); } if (*expected) return _test_fail(point); clear_tokens(); return FALSE; }
bool _test_assert_sequence(char *expected, const char *msg) { char *cp = test_tokens_buffer; while (cp < test_tokp) { if (*cp++ != *expected++) return _test_fail(msg); } if (*expected) return _test_fail(msg); clear_tokens(); return FALSE; }
bool _test_assert(bool condition, const char *msg) { if (!condition) return _test_fail(msg); return FALSE; }
bool _test_assert(unsigned point, bool condition) { if (!condition) return _test_fail(point); return FALSE; }