c-multihash/tests/c/test_hashes_length.c
2016-07-29 18:05:11 +01:00

27 lines
559 B
C

/* 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;
//int length = 0;
for (; i < MH_H_COUNT; i++) {
/* length = mh_hash_default_length((mh_hash) i);
sprintf(error_buf, "mh_hash_default_length: hash %d"
" returned invalid (%d) default length",
i, length);
mu_assert(error_buf, length > 0);
*/
}
return NULL;
}
static char *mu_all_tests(void) {
mu_run_test(test_all_hashes_have_lengths);
return NULL;
}