From 0223869773ce022cdb6dcf262389d5feaa9c8364 Mon Sep 17 00:00:00 2001 From: bjsylvia Date: Tue, 24 Dec 2024 04:48:28 +0800 Subject: [PATCH] chore(tests): assert array size with LV_ARRAY_DEFAULT_CAPACITY (#7497) --- tests/src/test_cases/test_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/test_cases/test_array.c b/tests/src/test_cases/test_array.c index 604b21f96..e6ddb7981 100644 --- a/tests/src/test_cases/test_array.c +++ b/tests/src/test_cases/test_array.c @@ -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(12, lv_array_capacity(&array)); 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)); }