updated test with example cleaner syntax

This commit is contained in:
2025-11-25 22:24:59 +01:00
parent 6dc0caceeb
commit cd3f814b86
+2 -4
View File
@@ -4,10 +4,8 @@
Test(arena_allocator, repeated_allocations) {
arena_allocator_t aalloc = arena_allocator_create();
for ( int i = 0; i < 10; i++ ) {
with_arena(&aalloc, allocator) {
allocator_alloc(allocator, 10);
}
for ( int i = 0; i < 10; i++ ) with_arena(&aalloc, allocator) {
allocator_alloc(allocator, 10);
}
cr_assert_eq(aalloc.total_allocated, 10);