+
+t_fold(Cfg) ->
+ {some, DictModule} = hope_kv_list:get(Cfg, ?DICT_MODULE),
+ KVList = [{a, 1}, {a, 5}, {b, 3}, {c, 4}, {c, 4}],
+ Dict = DictModule:of_kv_list(KVList),
+ 17 = DictModule:fold(Dict, fun (_K, V, Acc) -> V + Acc end, 0).
+
+t_dictionary_specs(Cfg) ->
+ {some, DictModule} = hope_kv_list:get(Cfg, ?DICT_MODULE),
+ [] = proper:check_specs(DictModule).