diff -r e1f3248576bc -r e1e3b768ae8b test/avl_tests.c --- a/test/avl_tests.c Mon May 14 18:19:16 2018 +0200 +++ b/test/avl_tests.c Mon May 14 18:20:56 2018 +0200 @@ -75,11 +75,11 @@ } UCX_TEST(test_ucx_avl_put) { - UcxAVLTree *tree1 = ucx_avl_new(ucx_ptrcmp); - UcxAVLTree *tree2 = ucx_avl_new(ucx_ptrcmp); - UcxAVLTree *tree3 = ucx_avl_new(ucx_ptrcmp); - UcxAVLTree *tree4 = ucx_avl_new(ucx_ptrcmp); - UcxAVLTree *tree5 = ucx_avl_new(ucx_ptrcmp); + UcxAVLTree *tree1 = ucx_avl_new(ucx_cmp_ptr); + UcxAVLTree *tree2 = ucx_avl_new(ucx_cmp_ptr); + UcxAVLTree *tree3 = ucx_avl_new(ucx_cmp_ptr); + UcxAVLTree *tree4 = ucx_avl_new(ucx_cmp_ptr); + UcxAVLTree *tree5 = ucx_avl_new(ucx_cmp_ptr); char *data1 = (char*)"data1"; char *data2 = (char*)"data2"; @@ -144,10 +144,10 @@ } UCX_TEST(test_ucx_avl_remove) { - UcxAVLTree *tree1 = ucx_avl_new(ucx_ptrcmp); - UcxAVLTree *tree2 = ucx_avl_new(ucx_ptrcmp); - UcxAVLTree *tree3 = ucx_avl_new(ucx_ptrcmp); - UcxAVLTree *tree4 = ucx_avl_new(ucx_ptrcmp); + UcxAVLTree *tree1 = ucx_avl_new(ucx_cmp_ptr); + UcxAVLTree *tree2 = ucx_avl_new(ucx_cmp_ptr); + UcxAVLTree *tree3 = ucx_avl_new(ucx_cmp_ptr); + UcxAVLTree *tree4 = ucx_avl_new(ucx_cmp_ptr); char *data1 = (char*)"data1"; char *data2 = (char*)"data2"; @@ -229,7 +229,7 @@ } UCX_TEST(test_ucx_avl_find) { - UcxAVLTree *tree = ucx_avl_new(ucx_ptrcmp); + UcxAVLTree *tree = ucx_avl_new(ucx_cmp_ptr); size_t len = 12; int val[] = {10, 15, 3, 4, -30, 20, 14, -11, 12, -5, 1, 13}; @@ -284,7 +284,7 @@ } UCX_TEST(test_ucx_avl_traverse) { - UcxAVLTree *tree = ucx_avl_new(ucx_ptrcmp); + UcxAVLTree *tree = ucx_avl_new(ucx_cmp_ptr); size_t len = 12;