-static void count(const_xbt_dict_t dict, int length)
-{
- INFO("Count elements (expecting " << length << ")");
- REQUIRE(xbt_dict_length(dict) == length); // Announced length differs
-
- xbt_dict_cursor_t cursor;
- char* key;
- void* data;
- int effective = 0;
- xbt_dict_foreach (dict, cursor, key, data)
- effective++;
-
- REQUIRE(effective == length); // Effective length differs
-}
-