updated test with example cleaner syntax
This commit is contained in:
@@ -4,11 +4,9 @@
|
||||
Test(arena_allocator, repeated_allocations) {
|
||||
arena_allocator_t aalloc = arena_allocator_create();
|
||||
|
||||
for ( int i = 0; i < 10; i++ ) {
|
||||
with_arena(&aalloc, allocator) {
|
||||
for ( int i = 0; i < 10; i++ ) with_arena(&aalloc, allocator) {
|
||||
allocator_alloc(allocator, 10);
|
||||
}
|
||||
}
|
||||
|
||||
cr_assert_eq(aalloc.total_allocated, 10);
|
||||
cr_assert_eq(borrow_allocator_count_allocations(&aalloc.borrow_allocator), 0);
|
||||
|
||||
Reference in New Issue
Block a user