1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

chore(tests): assert array size with LV_ARRAY_DEFAULT_CAPACITY (#7497)

This commit is contained in:
bjsylvia 2024-12-24 04:48:28 +08:00 committed by GitHub
parent cdaaeb81dc
commit 0223869773
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ void test_array_resize(void)
TEST_ASSERT_EQUAL_UINT32(LV_ARRAY_DEFAULT_CAPACITY, lv_array_size(&array)); TEST_ASSERT_EQUAL_UINT32(LV_ARRAY_DEFAULT_CAPACITY, lv_array_size(&array));
TEST_ASSERT_EQUAL_UINT32(12, lv_array_capacity(&array)); TEST_ASSERT_EQUAL_UINT32(12, lv_array_capacity(&array));
lv_array_resize(&array, 6); lv_array_resize(&array, 6);
TEST_ASSERT_EQUAL_UINT32(4, lv_array_size(&array)); TEST_ASSERT_EQUAL_UINT32(LV_ARRAY_DEFAULT_CAPACITY, lv_array_size(&array));
TEST_ASSERT_EQUAL_UINT32(6, lv_array_capacity(&array)); TEST_ASSERT_EQUAL_UINT32(6, lv_array_capacity(&array));
} }