2016-07-26 15:53:52 +00:00
|
|
|
/* vim: set ts=8 sw=8 noexpandtab: */
|
|
|
|
#include <string.h>
|
|
|
|
#include "minunit.h"
|
|
|
|
|
|
|
|
#include "mh/hashes.h"
|
|
|
|
|
|
|
|
char error_buf[256];
|
|
|
|
|
|
|
|
static char *test_all_hashes_have_lengths(void) {
|
|
|
|
int i = 0;
|
2016-07-29 17:05:11 +00:00
|
|
|
//int length = 0;
|
2016-07-26 15:53:52 +00:00
|
|
|
for (; i < MH_H_COUNT; i++) {
|
2016-07-29 17:05:11 +00:00
|
|
|
/* length = mh_hash_default_length((mh_hash) i);
|
2016-07-27 09:45:53 +00:00
|
|
|
sprintf(error_buf, "mh_hash_default_length: hash %d"
|
|
|
|
" returned invalid (%d) default length",
|
|
|
|
i, length);
|
|
|
|
mu_assert(error_buf, length > 0);
|
2016-07-29 17:05:11 +00:00
|
|
|
*/
|
2016-07-26 15:53:52 +00:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static char *mu_all_tests(void) {
|
|
|
|
mu_run_test(test_all_hashes_have_lengths);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|