test: move all module tests to the test/ directory
This commit is contained in:
21
test/ds/arrays.c
Normal file
21
test/ds/arrays.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user