refactor dynamic array: update default size definitions and improve header guard

This commit is contained in:
2026-03-27 15:38:10 -03:00
parent cc1f5d47ad
commit 857205fe45
3 changed files with 17 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ void tearDown() {
void test_array_create_without_options(void) {
const Array *array = array_create(NULL);
TEST_ASSERT_EQUAL(DEFAULT_ARRAY_SIZE, array->capacity);
TEST_ASSERT_EQUAL(DYNAMIC_ARRAY_DEFAULT_ARRAY_SIZE, array->capacity);
}
@@ -157,7 +157,7 @@ void test_array_get_capacity_default(void) {
const size_t capacity = array_get_capacity(array);
TEST_ASSERT_EQUAL(DEFAULT_ARRAY_SIZE, capacity);
TEST_ASSERT_EQUAL(DYNAMIC_ARRAY_DEFAULT_ARRAY_SIZE, capacity);
array_deconstructor(&array);
}