tests/test_list.cpp

changeset 763
741a2040fa33
parent 704
35f06c5eeb0e
child 764
ccbdbd088455
--- a/tests/test_list.cpp	Mon Dec 18 16:04:21 2023 +0100
+++ b/tests/test_list.cpp	Mon Dec 18 16:14:07 2023 +0100
@@ -1021,7 +1021,7 @@
     CxList *list = autofree(cxLinkedListCreateSimple(CX_STORE_POINTERS));
     ASSERT_NE(list, nullptr);
     EXPECT_EQ(list->item_size, sizeof(void *));
-    EXPECT_EQ(list->cmpfunc, nullptr);
+    EXPECT_EQ(list->cmpfunc, cx_cmp_ptr);
     EXPECT_EQ(list->allocator, cxDefaultAllocator);
     EXPECT_EQ(list->simple_destructor, nullptr);
     EXPECT_EQ(list->advanced_destructor, nullptr);
@@ -1059,7 +1059,7 @@
 TEST_F(PointerArrayList, cxArrayListCreateSimpleForPointers) {
     CxList *list = autofree(cxArrayListCreateSimple(CX_STORE_POINTERS, 8));
     ASSERT_NE(list, nullptr);
-    EXPECT_EQ(list->cmpfunc, nullptr);
+    EXPECT_EQ(list->cmpfunc, cx_cmp_ptr);
     EXPECT_EQ(list->allocator, cxDefaultAllocator);
     EXPECT_EQ(list->item_size, sizeof(void *));
     EXPECT_TRUE(cxListIsStoringPointers(list));

mercurial