feat: add int map implementation
This commit is contained in:
20
day_5.c
Normal file
20
day_5.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user