test/list_tests.c

changeset 134
4d320dc3a7af
parent 123
7fb0f74517c5
child 162
52dfe5f4ecd7
     1.1 --- a/test/list_tests.c	Fri Aug 09 10:24:02 2013 +0200
     1.2 +++ b/test/list_tests.c	Fri Aug 09 11:32:10 2013 +0200
     1.3 @@ -29,7 +29,7 @@
     1.4  #include "list_tests.h"
     1.5  #include "ucx/utils.h"
     1.6  
     1.7 -UCX_TEST_IMPLEMENT(test_ucx_list_append) {
     1.8 +UCX_TEST(test_ucx_list_append) {
     1.9      UcxList *list = ucx_list_append(NULL, (void*)"Hello");
    1.10      UCX_TEST_BEGIN
    1.11      
    1.12 @@ -46,7 +46,7 @@
    1.13      ucx_list_free(list);
    1.14  }
    1.15  
    1.16 -UCX_TEST_IMPLEMENT(test_ucx_list_prepend) {
    1.17 +UCX_TEST(test_ucx_list_prepend) {
    1.18      UcxList *list = ucx_list_prepend(NULL, (void*)" World!");
    1.19      UCX_TEST_BEGIN
    1.20  
    1.21 @@ -62,7 +62,7 @@
    1.22      ucx_list_free(list);
    1.23  }
    1.24  
    1.25 -UCX_TEST_IMPLEMENT(test_ucx_list_equals) {
    1.26 +UCX_TEST(test_ucx_list_equals) {
    1.27      UcxList *list = ucx_list_append(NULL, (void*)"Hello");
    1.28      list = ucx_list_append(list, (void*)" World!");
    1.29      UcxList *list2 = ucx_list_prepend(NULL, (void*)" World!");
    1.30 @@ -80,7 +80,7 @@
    1.31      ucx_list_free(list);
    1.32  }
    1.33  
    1.34 -UCX_TEST_IMPLEMENT(test_ucx_list_concat) {
    1.35 +UCX_TEST(test_ucx_list_concat) {
    1.36      UcxList *list = ucx_list_append(NULL, (void*)"Hello");
    1.37      UcxList *list2 = ucx_list_prepend(NULL, (void*)" World!");
    1.38      UCX_TEST_BEGIN
    1.39 @@ -97,7 +97,7 @@
    1.40      ucx_list_free(list);
    1.41  }
    1.42  
    1.43 -UCX_TEST_IMPLEMENT(test_ucx_list_size) {
    1.44 +UCX_TEST(test_ucx_list_size) {
    1.45      UcxList *list = ucx_list_append(NULL, (void*)"This ");
    1.46      list = ucx_list_append(list, (void*)"list ");
    1.47      list = ucx_list_append(list, (void*)"has ");
    1.48 @@ -112,7 +112,7 @@
    1.49      ucx_list_free(list);
    1.50  }
    1.51  
    1.52 -UCX_TEST_IMPLEMENT(test_ucx_list_first) {
    1.53 +UCX_TEST(test_ucx_list_first) {
    1.54      UcxList *list = ucx_list_append(NULL, (void*)"Find ");
    1.55      list = ucx_list_append(list, (void*)"the ");
    1.56      list = ucx_list_append(list, (void*)"first!");
    1.57 @@ -127,7 +127,7 @@
    1.58      ucx_list_free(list);
    1.59  }
    1.60  
    1.61 -UCX_TEST_IMPLEMENT(test_ucx_list_last) {
    1.62 +UCX_TEST(test_ucx_list_last) {
    1.63      UcxList *list = ucx_list_append(NULL, (void*)"Find ");
    1.64      list = ucx_list_append(list, (void*)"the ");
    1.65      list = ucx_list_append(list, (void*)"last!");
    1.66 @@ -142,7 +142,7 @@
    1.67      ucx_list_free(list);
    1.68  }
    1.69  
    1.70 -UCX_TEST_IMPLEMENT(test_ucx_list_get) {
    1.71 +UCX_TEST(test_ucx_list_get) {
    1.72      UcxList *list = ucx_list_append(NULL, (void*)"Find ");
    1.73      list = ucx_list_append(list, (void*)"the ");
    1.74      list = ucx_list_append(list, (void*)"mid!");
    1.75 @@ -157,7 +157,7 @@
    1.76      ucx_list_free(list);
    1.77  }
    1.78  
    1.79 -UCX_TEST_IMPLEMENT(test_ucx_list_indexof) {
    1.80 +UCX_TEST(test_ucx_list_indexof) {
    1.81      UcxList *list = ucx_list_append(NULL, (void*)"Find ");
    1.82      list = ucx_list_append(list, (void*)"the ");
    1.83      list = ucx_list_append(list, (void*)"mid!");
    1.84 @@ -177,7 +177,7 @@
    1.85      ucx_list_free(list);
    1.86  }
    1.87  
    1.88 -UCX_TEST_IMPLEMENT(test_ucx_list_find) {
    1.89 +UCX_TEST(test_ucx_list_find) {
    1.90      UcxList *l = ucx_list_append(NULL, (void*)"find ");
    1.91      l = ucx_list_append(l, (void*)"some ");
    1.92      l = ucx_list_append(l, (void*)"string!");
    1.93 @@ -193,7 +193,7 @@
    1.94      ucx_list_free(l);
    1.95  }
    1.96  
    1.97 -UCX_TEST_IMPLEMENT(test_ucx_list_contains) {
    1.98 +UCX_TEST(test_ucx_list_contains) {
    1.99      UcxList *l = ucx_list_append(NULL, (void*)"Contains ");
   1.100      l = ucx_list_append(l, (void*)"a ");
   1.101      l = ucx_list_append(l, (void*)"string!");
   1.102 @@ -209,7 +209,7 @@
   1.103      ucx_list_free(l);
   1.104  }
   1.105  
   1.106 -UCX_TEST_IMPLEMENT(test_ucx_list_remove) {
   1.107 +UCX_TEST(test_ucx_list_remove) {
   1.108      UcxList *list = ucx_list_append(NULL, (void*)"Hello");
   1.109      list = ucx_list_append(list, (void*)" fucking");
   1.110      list = ucx_list_append(list, (void*)" World!");
   1.111 @@ -228,7 +228,7 @@
   1.112      ucx_list_free(list);
   1.113  }
   1.114  
   1.115 -UCX_TEST_IMPLEMENT(test_ucx_list_clone) {
   1.116 +UCX_TEST(test_ucx_list_clone) {
   1.117     
   1.118      char *hello = (char*)malloc(6);
   1.119      char *world = (char*)malloc(8);
   1.120 @@ -256,7 +256,7 @@
   1.121      ucx_list_free(copy);
   1.122  }
   1.123  
   1.124 -UCX_TEST_IMPLEMENT(test_ucx_list_sort) {
   1.125 +UCX_TEST(test_ucx_list_sort) {
   1.126      UcxList *list = ucx_list_append(NULL, (void*)"this");
   1.127      list = ucx_list_append(list, (void*)"is");
   1.128      list = ucx_list_append(list, (void*)"a");

mercurial