aboutsummaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2015-12-24 19:18:45 -0500
committerFranklin Wei <frankhwei536@gmail.com>2015-12-24 19:18:45 -0500
commit2f6d654a8ddf2aba20d734201bb78b578fdd0c20 (patch)
treec26e64930e1d73960eebc26b02d9d2185d2e1aef /src/test.c
parent846b86657c88de43932ae0427e54b31c0ce7509f (diff)
downloadnetcosm-2f6d654a8ddf2aba20d734201bb78b578fdd0c20.zip
netcosm-2f6d654a8ddf2aba20d734201bb78b578fdd0c20.tar.gz
netcosm-2f6d654a8ddf2aba20d734201bb78b578fdd0c20.tar.bz2
netcosm-2f6d654a8ddf2aba20d734201bb78b578fdd0c20.tar.xz
stuff
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c10
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"));
+}