test: move all module tests to the test/ directory

This commit is contained in:
2025-11-01 10:12:18 +00:00
parent a68b9f7ba7
commit bd2fe50ec9
32 changed files with 5 additions and 5 deletions

21
test/ds/arrays.c Normal file
View File

@@ -0,0 +1,21 @@
#include <blue/ds/array.h>
#include <blue/ds/number.h>
#include <stdio.h>
int main(void)
{
b_array *array = b_array_create();
b_array_append(array, B_RV_INT(32));
b_array_append(array, B_RV_INT(64));
b_array_append(array, B_RV_INT(128));
b_iterator *it = b_iterator_begin(array);
b_foreach_ptr(b_object, obj, it)
{
printf("object %p\n", obj);
}
b_iterator_unref(it);
b_array_unref(array);
return 0;
}