D | test_all.c | 31 void bmp_test(const char* test_name, uint8_t* buf, size_t buflen, const char* contents) { in bmp_test() argument 37 if (strcmp(contents, buf_string) == 0) { in bmp_test() 41 printf("%s: FAIL: %s vs. %s\n", test_name, contents, buf_string); in bmp_test() 78 void cbuf_test(const char* test_name, struct cbufhead* chdr, const char* contents) { in cbuf_test() argument 95 if (strcmp(contents, buf_string) == 0) { in cbuf_test() 99 …printf("%s: FAIL: %s (%zu) vs. %s (%zu)\n", test_name, contents, strlen(contents), buf_string, str… in cbuf_test()
|