21 lines
323 B
C
21 lines
323 B
C
//
|
|
// 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);
|
|
}
|