test/test_list.c

changeset 491
6d538177f746
parent 489
af6be1e123aa
child 492
188942a7308b
equal deleted inserted replaced
490:e66551b47466 491:6d538177f746
579 for (int i = 0; i < 5; i++) cxListAdd(expected, &data[i]); 579 for (int i = 0; i < 5; i++) cxListAdd(expected, &data[i]);
580 580
581 CxList list = cxLinkedListFromArray(cxTestingAllocator, (CxListComparator) cmp_int, sizeof(int), 5, data); 581 CxList list = cxLinkedListFromArray(cxTestingAllocator, (CxListComparator) cmp_int, sizeof(int), 5, data);
582 582
583 CU_ASSERT_TRUE(0 == cxListCompare(list, expected)) 583 CU_ASSERT_TRUE(0 == cxListCompare(list, expected))
584
585 cxLinkedListDestroy(list);
586 cxLinkedListDestroy(expected);
587 CU_ASSERT_TRUE(cxTestingAllocatorVerify())
584 } 588 }
585 589
586 void test_hl_linked_list_add(void) { 590 void test_hl_linked_list_add(void) {
587 cxTestingAllocatorReset(); 591 cxTestingAllocatorReset();
588 592

mercurial