diff options
Diffstat (limited to 'src/test.c')
| -rw-r--r-- | src/test.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test.c b/src/test.c new file mode 100644 index 0000000..23a7530 --- /dev/null +++ b/src/test.c @@ -0,0 +1,10 @@ +#include "hash.h" +#include <string.h> + +int main() +{ + struct hash_map *map = hash_init(10, hash_djb, strcmp); + hash_insert(map, "a", 42); + hash_insert(map, "b", 32); + printf("weird. %d\n", hash_lookup(map, "a")); +} |