507 auto testdata = create_nodes_test_data(13); |
507 auto testdata = create_nodes_test_data(13); |
508 EXPECT_EQ(cx_linked_list_size(testdata.begin, loc_next), 13); |
508 EXPECT_EQ(cx_linked_list_size(testdata.begin, loc_next), 13); |
509 } |
509 } |
510 } |
510 } |
511 |
511 |
|
512 TEST(LinkedList_LowLevel, cx_linked_list_sort_empty) { |
|
513 void *begin = nullptr; |
|
514 EXPECT_NO_FATAL_FAILURE( |
|
515 cx_linked_list_sort(&begin, nullptr, loc_prev, loc_next, loc_data, cx_cmp_int); |
|
516 ); |
|
517 } |
|
518 |
512 TEST(LinkedList_LowLevel, cx_linked_list_sort) { |
519 TEST(LinkedList_LowLevel, cx_linked_list_sort) { |
513 int_test_data<1500> testdata; |
520 int_test_data<1500> testdata; |
514 std::array<int, 1500> sorted{}; |
521 std::array<int, 1500> sorted{}; |
515 std::partial_sort_copy(testdata.data.begin(), testdata.data.end(), sorted.begin(), sorted.end()); |
522 std::partial_sort_copy(testdata.data.begin(), testdata.data.end(), sorted.begin(), sorted.end()); |
516 |
523 |