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:
parent
cdaaeb81dc
commit
0223869773
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user