feat: add int map implementation

This commit is contained in:
2023-12-08 04:00:29 +01:00
parent 14dc992bbc
commit b203c93f47
5 changed files with 189 additions and 2 deletions

20
day_5.c Normal file
View File

@@ -0,0 +1,20 @@
//
// Created by lennart on 12/7/23.
//
#include <stdio.h>
#include <assert.h>
#include "map.h"
int main() {
Map *map = map_create();
for(int i = 0; i < 10000; i++) {
map_put(map, i, i + 1);
}
for(int i = 1; i < 10000; i++) {
assert(map_get(map, i) == i + 1);
}
map_free(map);
}