Added list tests2

Sat, 31 Dec 2011 19:10:29 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 31 Dec 2011 19:10:29 +0100
changeset 12
fe50a85e69e7
parent 11
4f6082f99bd7
child 13
98ac89e3aa37

Added list tests2

test/list_tests.h file | annotate | diff | comparison | revisions
test/main.c file | annotate | diff | comparison | revisions
ucx/list.h file | annotate | diff | comparison | revisions
--- a/test/list_tests.h	Sat Dec 31 19:08:27 2011 +0100
+++ b/test/list_tests.h	Sat Dec 31 19:10:29 2011 +0100
@@ -12,7 +12,8 @@
 extern "C" {
 #endif
 
-int list_tests();
+int dlist_tests();
+int list_tests();;
 
 
 #ifdef	__cplusplus
--- a/test/main.c	Sat Dec 31 19:08:27 2011 +0100
+++ b/test/main.c	Sat Dec 31 19:10:29 2011 +0100
@@ -34,6 +34,11 @@
 int main(int argc, char **argv) {
     printf("UCX Tests\n---------\n\n");
 
+    printf("UcxDlist Tests\n");
+    if(dlist_tests()) {
+        fprintf(stderr, "list_tests failed\n");
+    }
+    printf("UcxList Tests\n");
     if(list_tests()) {
         fprintf(stderr, "list_tests failed\n");
     }
--- a/ucx/list.h	Sat Dec 31 19:08:27 2011 +0100
+++ b/ucx/list.h	Sat Dec 31 19:10:29 2011 +0100
@@ -18,6 +18,7 @@
     UcxList *next;
 };
 
+void ucx_list_free(UcxList *l);
 UcxList *ucx_list_append(UcxList *l, void *data);
 UcxList *ucx_list_prepend(UcxList *l, void *data);
 UcxList *ucx_list_concat(UcxList *l1, UcxList *l2);

mercurial