+ /* xbt_dict_dump(head,(void (*)(void*))&printf);*/
+ printf(" - Test that it works with NULL data\n");
+ printf(" - Store NULL under 'null'\n");fflush(stdout);
+ xbt_dict_set(head,"null",NULL,NULL);
+ TRYFAIL(search(head,"null"));
+ /* xbt_dict_dump(head,(void (*)(void*))&printf); */
+ printf(" Check whether I see it while traversing\n");fflush(stdout);
+ {
+ xbt_dict_cursor_t cursor=NULL;
+ char *key;
+ int found=0;
+
+ xbt_dict_foreach(head,cursor,key,data) {
+ printf(" - Seen: %s->%s\n",key,data);fflush(stdout);
+ if (!strcmp(key,"null"))
+ found = 1;
+ }
+ xbt_assert0(found,"the key 'null', associated to NULL is not found");
+ }
+