add all old corelib tests
This commit is contained in:
19
object-test/arrays.c
Normal file
19
object-test/arrays.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <blue/object/array.h>
|
||||
#include <blue/object/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_array_iterator it;
|
||||
b_array_foreach(&it, array)
|
||||
{
|
||||
printf("object %p\n", it.value);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user