X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/12add936d351173b49b31a7a8d3cc85000185ed5..10da10992e717ff220b7443d171e07559d45b3e4:/src/xbt/dict.c diff --git a/src/xbt/dict.c b/src/xbt/dict.c index 6c13d1c483..227347b76a 100644 --- a/src/xbt/dict.c +++ b/src/xbt/dict.c @@ -571,9 +571,21 @@ char *data; XBT_TEST_UNIT("basic",test_dict_basic,"Basic usage: change, retrieve, traverse"){ - xbt_test_add0("Traversal the empty dictionnary"); + xbt_test_add0("Traversal the null dictionnary"); traverse(head); + xbt_test_add0("Traversal and search the empty dictionnary"); + head = xbt_dict_new(); + traverse(head); + TRY { + debuged_remove(head,"12346"); + } CATCH(e) { + if (e.category != not_found_error) + xbt_test_exception(e); + xbt_ex_free(e); + } + xbt_dict_free(&head); + xbt_test_add0("Traverse the full dictionnary"); fill(&head); count(head, 7);