1.1 --- a/test/avl_tests.c Mon May 14 18:19:16 2018 +0200 1.2 +++ b/test/avl_tests.c Mon May 14 18:20:56 2018 +0200 1.3 @@ -75,11 +75,11 @@ 1.4 } 1.5 1.6 UCX_TEST(test_ucx_avl_put) { 1.7 - UcxAVLTree *tree1 = ucx_avl_new(ucx_ptrcmp); 1.8 - UcxAVLTree *tree2 = ucx_avl_new(ucx_ptrcmp); 1.9 - UcxAVLTree *tree3 = ucx_avl_new(ucx_ptrcmp); 1.10 - UcxAVLTree *tree4 = ucx_avl_new(ucx_ptrcmp); 1.11 - UcxAVLTree *tree5 = ucx_avl_new(ucx_ptrcmp); 1.12 + UcxAVLTree *tree1 = ucx_avl_new(ucx_cmp_ptr); 1.13 + UcxAVLTree *tree2 = ucx_avl_new(ucx_cmp_ptr); 1.14 + UcxAVLTree *tree3 = ucx_avl_new(ucx_cmp_ptr); 1.15 + UcxAVLTree *tree4 = ucx_avl_new(ucx_cmp_ptr); 1.16 + UcxAVLTree *tree5 = ucx_avl_new(ucx_cmp_ptr); 1.17 1.18 char *data1 = (char*)"data1"; 1.19 char *data2 = (char*)"data2"; 1.20 @@ -144,10 +144,10 @@ 1.21 } 1.22 1.23 UCX_TEST(test_ucx_avl_remove) { 1.24 - UcxAVLTree *tree1 = ucx_avl_new(ucx_ptrcmp); 1.25 - UcxAVLTree *tree2 = ucx_avl_new(ucx_ptrcmp); 1.26 - UcxAVLTree *tree3 = ucx_avl_new(ucx_ptrcmp); 1.27 - UcxAVLTree *tree4 = ucx_avl_new(ucx_ptrcmp); 1.28 + UcxAVLTree *tree1 = ucx_avl_new(ucx_cmp_ptr); 1.29 + UcxAVLTree *tree2 = ucx_avl_new(ucx_cmp_ptr); 1.30 + UcxAVLTree *tree3 = ucx_avl_new(ucx_cmp_ptr); 1.31 + UcxAVLTree *tree4 = ucx_avl_new(ucx_cmp_ptr); 1.32 1.33 char *data1 = (char*)"data1"; 1.34 char *data2 = (char*)"data2"; 1.35 @@ -229,7 +229,7 @@ 1.36 } 1.37 1.38 UCX_TEST(test_ucx_avl_find) { 1.39 - UcxAVLTree *tree = ucx_avl_new(ucx_ptrcmp); 1.40 + UcxAVLTree *tree = ucx_avl_new(ucx_cmp_ptr); 1.41 1.42 size_t len = 12; 1.43 int val[] = {10, 15, 3, 4, -30, 20, 14, -11, 12, -5, 1, 13}; 1.44 @@ -284,7 +284,7 @@ 1.45 } 1.46 1.47 UCX_TEST(test_ucx_avl_traverse) { 1.48 - UcxAVLTree *tree = ucx_avl_new(ucx_ptrcmp); 1.49 + UcxAVLTree *tree = ucx_avl_new(ucx_cmp_ptr); 1.50 1.51 size_t len = 12; 1.52