Exemplo n.º 1
0
char *test_adler32(void) {
	uint32_t hash = Hashmap_adler32_hash(&test1);
	mu_assert(hash != 0, "Bad hash.");

	hash = Hashmap_adler32_hash(&test2);
	mu_assert(hash != 0, "Bad hash.");

	hash = Hashmap_adler32_hash(&test3);
	mu_assert(hash != 0, "Bad hash.");

	return NULL;
}
char *test_adler32()
{
    uint32_t hash = Hashmap_adler32_hash(&test1);
    assert(hash != 0 && "Bad hash.");

    hash = Hashmap_adler32_hash(&test2);
    assert(hash != 0 && "Bad hash.");

    hash = Hashmap_adler32_hash(&test3);
    assert(hash != 0 && "Bad hash.");

    return NULL;
}