tests/test_list.cpp

changeset 702
3390b58ad15a
parent 699
35b2b99ee523
child 704
35f06c5eeb0e
--- a/tests/test_list.cpp	Mon Apr 24 19:08:56 2023 +0200
+++ b/tests/test_list.cpp	Fri May 05 19:07:56 2023 +0200
@@ -509,6 +509,13 @@
     }
 }
 
+TEST(LinkedList_LowLevel, cx_linked_list_sort_empty) {
+    void *begin = nullptr;
+    EXPECT_NO_FATAL_FAILURE(
+        cx_linked_list_sort(&begin, nullptr, loc_prev, loc_next, loc_data, cx_cmp_int);
+    );
+}
+
 TEST(LinkedList_LowLevel, cx_linked_list_sort) {
     int_test_data<1500> testdata;
     std::array<int, 1500> sorted{};

mercurial