blob: 3a9895cb82a9c5050b9e9fd24f0c1cbcfc4518b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "mmhash.h"
int main() {
printf("[TEST] hash\n");
char buf[] = "hello, world\n";
uint64_t hash0 = mmhash(buf, strlen(buf), 0);
uint64_t hash1 = mmhash(buf, 3, 0);
assert(hash0 != hash1);
printf("[PASS] hash\n");
return 0;
}
|