test: update tests

This commit is contained in:
2025-11-01 10:04:41 +00:00
parent 9e21e0c4b2
commit a68b9f7ba7
7 changed files with 58 additions and 42 deletions

View File

@@ -9,11 +9,12 @@ int main(void)
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)
b_iterator *it = b_iterator_begin(array);
b_foreach_ptr(b_object, obj, it)
{
printf("object %p\n", it.value);
printf("object %p\n", obj);
}
b_iterator_unref(it);
b_array_unref(array);
return 0;