Skip to content

Commit 800d97b

Browse files
committed
refactor(tests): update bump allocator tests for size validation and alignment
1 parent b1de674 commit 800d97b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/bump_alloc_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void test_bump_creation(void) {
3838
ASSERT(bump == NULL, "Bump allocator creation with zero size should fail");
3939
if (bump) em_bump_destroy(bump);
4040

41-
bump = em_bump_create(em, 10);
41+
bump = em_bump_create(em, EM_MIN_BUFFER_SIZE - 1);
4242
ASSERT(bump == NULL, "Bump creation with too small positive size should fail");
4343
if (bump) em_bump_destroy(bump);
4444

@@ -333,7 +333,7 @@ static void test_bump_trim(void) {
333333
print_fancy(bump_get_em(bump), 101);
334334
#endif
335335

336-
ASSERT(bump_get_capacity(bump) == 16, "Trim should align capacity up");
336+
ASSERT(bump_get_capacity(bump) == EM_MIN_BUFFER_SIZE, "Trim should align capacity up");
337337

338338
em_destroy(em);
339339
}

0 commit comments

Comments
 (0)