String
This commit is contained in:
@@ -28,7 +28,7 @@ TEST_CASE(test_string_list_polymorphic_deep_copy_closure) {
|
||||
.ud = NULL
|
||||
};
|
||||
|
||||
c_StringList list;
|
||||
c_StringList_t list;
|
||||
// 初始化容量为 2 的特化字符串链表,并注入分配器
|
||||
ASSERT_INT_EQ(C_ERR_OK, c_StringList_Init(&list, 2, &my_pool));
|
||||
|
||||
@@ -76,7 +76,7 @@ TEST_CASE(test_string_list_polymorphic_deep_copy_closure) {
|
||||
ASSERT_INT_EQ(3, (int)g_list_pool_active_chunks); // 重复行的物理资源被内置分配器在底层连根拔起
|
||||
|
||||
// 7. 验证克隆体深拷贝承袭能力 (Clone)
|
||||
c_StringList clone_list;
|
||||
c_StringList_t clone_list;
|
||||
c_StringList_Init(&clone_list, 1, &my_pool); // 给个小容量 1
|
||||
ASSERT_INT_EQ(C_ERR_OK, c_StringList_Clone(&clone_list, &list));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user