test/map_tests.c

changeset 134
4d320dc3a7af
parent 112
6384016df2a3
child 152
3238f65db163
     1.1 --- a/test/map_tests.c	Fri Aug 09 10:24:02 2013 +0200
     1.2 +++ b/test/map_tests.c	Fri Aug 09 11:32:10 2013 +0200
     1.3 @@ -28,7 +28,7 @@
     1.4  
     1.5  #include "map_tests.h"
     1.6  
     1.7 -UCX_TEST_IMPLEMENT(test_ucx_map_new) {
     1.8 +UCX_TEST(test_ucx_map_new) {
     1.9      UcxMap *map = ucx_map_new(16);
    1.10      UCX_TEST_BEGIN
    1.11      UCX_TEST_ASSERT(map->size == 16, "wrong size");
    1.12 @@ -38,7 +38,7 @@
    1.13      ucx_map_free(map);
    1.14  }
    1.15  
    1.16 -UCX_TEST_IMPLEMENT(test_ucx_key) {
    1.17 +UCX_TEST(test_ucx_key) {
    1.18      UcxKey key = ucx_key((void*)"This is a text.", 15);
    1.19      UCX_TEST_BEGIN
    1.20      UCX_TEST_ASSERT(strncmp((const char*)key.data, "This is a text.", 15) == 0,
    1.21 @@ -49,7 +49,7 @@
    1.22      UCX_TEST_END
    1.23  }
    1.24  
    1.25 -UCX_TEST_IMPLEMENT(test_ucx_map_put) {
    1.26 +UCX_TEST(test_ucx_map_put) {
    1.27      
    1.28      UcxMap *map = ucx_map_new(4);
    1.29      
    1.30 @@ -94,7 +94,7 @@
    1.31      ucx_map_free(map);
    1.32  }
    1.33  
    1.34 -UCX_TEST_IMPLEMENT(test_ucx_map_get) {
    1.35 +UCX_TEST(test_ucx_map_get) {
    1.36      UcxMap *map = ucx_map_new(4);
    1.37  
    1.38      int td[5];
    1.39 @@ -125,7 +125,7 @@
    1.40      ucx_map_free(map);
    1.41  }
    1.42  
    1.43 -UCX_TEST_IMPLEMENT(test_ucx_map_remove) {
    1.44 +UCX_TEST(test_ucx_map_remove) {
    1.45      UcxMap *map = ucx_map_new(4);
    1.46  
    1.47      int td[5];
    1.48 @@ -188,7 +188,7 @@
    1.49      UCX_TEST_ASSERT(check == v1+v2+v3+v4, "test1: wrong result");
    1.50  }
    1.51  
    1.52 -UCX_TEST_IMPLEMENT(test_ucx_map_iterator) {
    1.53 +UCX_TEST(test_ucx_map_iterator) {
    1.54      UcxMap *map = ucx_map_new(16);
    1.55      UCX_TEST_BEGIN
    1.56      UCX_TEST_CALL_SUBROUTINE(test_ucx_map_itersrt, map)
    1.57 @@ -196,7 +196,7 @@
    1.58      ucx_map_free(map);
    1.59  }
    1.60  
    1.61 -UCX_TEST_IMPLEMENT(test_ucx_map_iterator_chain) {
    1.62 +UCX_TEST(test_ucx_map_iterator_chain) {
    1.63      UcxMap *map = ucx_map_new(1);
    1.64      UCX_TEST_BEGIN
    1.65      UCX_TEST_CALL_SUBROUTINE(test_ucx_map_itersrt, map)
    1.66 @@ -204,7 +204,7 @@
    1.67      ucx_map_free(map);
    1.68  }
    1.69  
    1.70 -UCX_TEST_IMPLEMENT(test_ucx_map_clone) {
    1.71 +UCX_TEST(test_ucx_map_clone) {
    1.72      UcxMap *map = ucx_map_new(4);
    1.73      
    1.74      ucx_map_cstr_put(map, "key1", (void*)"value1");
    1.75 @@ -241,7 +241,7 @@
    1.76      ucx_map_free(clone);
    1.77  }
    1.78  
    1.79 -UCX_TEST_IMPLEMENT(test_ucx_map_rehash) {
    1.80 +UCX_TEST(test_ucx_map_rehash) {
    1.81      UcxMap *map = ucx_map_new(4);
    1.82  
    1.83      char keys[10][5];

mercurial