meta: add support for simple unit test

This commit is contained in:
2025-04-11 13:41:33 +01:00
parent 377444ef59
commit 2b603c0d75
3 changed files with 40 additions and 6 deletions

20
test/name-map.c Normal file
View File

@@ -0,0 +1,20 @@
#include <mie/name.h>
#include <stdio.h>
int main(void)
{
struct mie_name_map *map = mie_name_map_create();
struct mie_name n1;
struct mie_name n2;
struct mie_name n3;
mie_name_map_put(map, &n1, "tmp");
mie_name_map_put(map, &n2, "tmp");
mie_name_map_put(map, &n3, "tmp");
printf("%s\n", n1.n_str);
printf("%s\n", n2.n_str);
printf("%s\n", n3.n_str);
return 0;
}