Kaltenberg/modules/utility/tests/unit-tests/src-c/interaction/pool.c

28 lines
548 B
C
Raw Normal View History

#include <voxula/internals/utility.h>
#include <stdlib.h>
bool vx_test_case_jumping_pointer_web()
{
}
bool vx_test_case_force_continuation_creation()
{
uint32_t pool_capacity = 64;
vx_pool_s *pool = vx_new_pool(8, pool_capacity);
void **items = malloc(4 * pool_capacity * sizeof(void *));
uint32_t item_index = 0;
while(item_index < (pool_capacity * 4))
{
items[item_index] = vx_pool(pool);
++item_index;
}
free(items);
return true;
}
bool test_pool_interaction()
{
vx_new_pool(8, 64);
}