test/test_list.c

changeset 443
d6d8712e15bc
parent 442
310019ddfe4e
child 444
cb944fa1852a
--- a/test/test_list.c	Tue Sep 28 18:03:10 2021 +0200
+++ b/test/test_list.c	Tue Sep 28 18:05:52 2021 +0200
@@ -173,34 +173,10 @@
     }
 
     suite = CU_add_suite("linked list suite", NULL, NULL);
-    if (NULL == suite) {
-        CU_cleanup_registry();
-        return CU_get_error();
-    }
-
-    if (
-            !CU_add_test(suite, "linked list: create and destroy", test_linked_list_create) ||
-            !CU_add_test(suite, "linked list: get node at index", test_linked_list_at) ||
-            !CU_add_test(suite, "linked list: add", test_cx_linked_list_add)
-            ) {
-        CU_cleanup_registry();
-        return CU_get_error();
-    }
-
-    suite = CU_add_suite("array suite", NULL, NULL);
-    if (NULL == suite) {
-        CU_cleanup_registry();
-        return CU_get_error();
-    }
-
-    /*
-    if (
-            !CU_add_test(suite, "array...", test_array...)
-            ) {
-        CU_cleanup_registry();
-        return CU_get_error();
-    }
-    */
+    
+    CU_add_test(suite, "linked list: create and destroy", test_linked_list_create);
+    CU_add_test(suite, "linked list: get node at index", test_linked_list_at);
+    CU_add_test(suite, "linked list: add", test_cx_linked_list_add);
 
     CU_basic_set_mode(UCX_CU_BRM);
 

mercurial