24 lines
383 B
C
24 lines
383 B
C
//
|
|
// Created by lennart on 12/7/23.
|
|
//
|
|
|
|
#include <stdio.h>
|
|
#include <assert.h>
|
|
#include "map.h"
|
|
|
|
int main() {
|
|
Map *map = map_create();
|
|
|
|
map_put(map, 0x0, 1);
|
|
map_put(map, 0x10, 2);
|
|
|
|
for(int i = 0; i < 10000; i++) {
|
|
map_put(map, i, i + 1);
|
|
}
|
|
// for(int i = 0; i < 10000; i++) {
|
|
// assert(map_get(map, i) == i + 1);
|
|
// }
|
|
|
|
map_free(map);
|
|
}
|