/* vim: set ts=8 sw=8 noexpandtab: */ #include #include "minunit.h" #include "mh/hashes.h" char error_buf[256]; static char *test_all_hashes_have_lengths(void) { int i = 0; int length = 0; for (; i < MH_H_COUNT; i++) { length = mh_hash_default_length(i); if (length <= 0) { sprintf(error_buf, "mh_hash_default_length: hash %d" " returned invalid (%d) default length", i, length); return error_buf; } } return NULL; } static char *mu_all_tests(void) { mu_run_test(test_all_hashes_have_lengths); return NULL; }