tests/test_list.c

changeset 1616
bdc04a8e0dd3
parent 1611
de21dd0d1426
equal deleted inserted replaced
1615:5c211187dde9 1616:bdc04a8e0dd3
3095 CX_TEST_DO { 3095 CX_TEST_DO {
3096 CX_TEST_CALL_SUBROUTINE(verify_union, true, true); 3096 CX_TEST_CALL_SUBROUTINE(verify_union, true, true);
3097 } 3097 }
3098 } 3098 }
3099 3099
3100 CX_TEST(test_list_simple_clones) { 3100 CX_TEST(test_list_shallow_clones) {
3101 3101
3102 int a[] = {1, 2, 5, 8, 10}; 3102 int a[] = {1, 2, 5, 8, 10};
3103 int b[] = {1, 3, 5, 7, 9, 11}; 3103 int b[] = {1, 3, 5, 7, 9, 11};
3104 int c[] = {2, 4, 6, 8, 10, 12}; 3104 int c[] = {2, 4, 6, 8, 10, 12};
3105 int d[] = {4, 8, 12}; 3105 int d[] = {4, 8, 12};
3650 cx_test_register(suite, test_list_difference_sorted_alloc_fail); 3650 cx_test_register(suite, test_list_difference_sorted_alloc_fail);
3651 cx_test_register(suite, test_list_intersection_unsorted); 3651 cx_test_register(suite, test_list_intersection_unsorted);
3652 cx_test_register(suite, test_list_intersection_sorted); 3652 cx_test_register(suite, test_list_intersection_sorted);
3653 cx_test_register(suite, test_list_intersection_unsorted_alloc_fail); 3653 cx_test_register(suite, test_list_intersection_unsorted_alloc_fail);
3654 cx_test_register(suite, test_list_intersection_sorted_alloc_fail); 3654 cx_test_register(suite, test_list_intersection_sorted_alloc_fail);
3655 cx_test_register(suite, test_list_simple_clones); 3655 cx_test_register(suite, test_list_shallow_clones);
3656 3656
3657 return suite; 3657 return suite;
3658 } 3658 }
3659 3659
3660 CxTestSuite *cx_test_suite_list_corner_cases(void) { 3660 CxTestSuite *cx_test_suite_list_corner_cases(void) {

mercurial