forked from yanelox/lfu_cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
21 lines (17 loc) · 639 Bytes
/
main.c
File metadata and controls
21 lines (17 loc) · 639 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "Hash_Map.h"
//---------------------------------------------------------------------
//---------------------------------------------------------------------
int main ()
{
struct hash_map Hash_Map = {NULL, 0};
Hash_Map = Init_Hash_Map ();
printf ("Vscadwd\n");
for (int i = 0; i < 4000; i++)
Insert_Hash_Map (&Hash_Map, i);
int res = Hash_of_Data (3020);
printf ("RES = %d\n", res);
printf ("Hash_Map.cells[670].items->data_t = %d", Hash_Map.cells[670].next->next->item->data_t);
Free_Hash_Map (Hash_Map);
}
//TODO: idea for test: print all collisions list
//TODO: tests for all func