diff -r 47f7fdbddb62 -r ef3163857e88 test/dlist_tests.c --- a/test/dlist_tests.c Wed Feb 27 10:09:23 2013 +0100 +++ b/test/dlist_tests.c Wed Feb 27 10:28:02 2013 +0100 @@ -129,6 +129,19 @@ ucx_dlist_free(list); } +UCX_TEST_IMPLEMENT(test_ucx_dlist_contains) { + UcxDlist *l = ucx_dlist_append(NULL, (void*)"Contains "); + UCX_TEST_BEGIN + l = ucx_dlist_append(l, (void*)"a "); + l = ucx_dlist_append(l, (void*)"string!"); + + UCX_TEST_ASSERT(ucx_dlist_contains(l,(void*)"a ",ucx_strcmp,NULL),"failed"); + UCX_TEST_ASSERT(!ucx_dlist_contains(l,(void*)"a",ucx_strcmp,NULL),"failed"); + + UCX_TEST_END + ucx_dlist_free(l); +} + UCX_TEST_IMPLEMENT(test_ucx_dlist_remove) { UcxDlist *list = ucx_dlist_append(NULL, (void*)"Hello"); UCX_TEST_BEGIN