From cd3f814b865f9ae44f1e0124d8b185a014f5df05 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Tue, 25 Nov 2025 22:24:59 +0100 Subject: [PATCH] updated test with example cleaner syntax --- test_arena_allocator.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test_arena_allocator.c b/test_arena_allocator.c index 4b3dd25..aa2bd80 100644 --- a/test_arena_allocator.c +++ b/test_arena_allocator.c @@ -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);