Implemented 'Toy_Table' hashtable with robin hood algorithm, untested

This commit is contained in:
2024-10-03 16:33:47 +10:00
parent a0d616f412
commit 5cf2e70b7d
6 changed files with 266 additions and 2 deletions

27
tests/cases/test_table.c Normal file
View File

@@ -0,0 +1,27 @@
#include "toy_table.h"
#include "toy_console_colors.h"
#include <stdio.h>
int test_table_allocation() {
return 0;
}
int main() {
//not finished yet
fprintf(stderr, TOY_CC_WARN "'Toy_Table' is not yet tested\n" TOY_CC_RESET);
return 0;
//run each test set, returning the total errors given
int total = 0, res = 0;
{
res = test_table_allocation();
if (res == 0) {
printf(TOY_CC_NOTICE "All good\n" TOY_CC_RESET);
}
total += res;
}
return total;
}