1 -module(hope_kv_list_SUITE).
16 -define(GROUP_KV_LIST, kv_list).
19 %% ============================================================================
20 %% Common Test callbacks
21 %% ============================================================================
23 %% TODO: Make tests generic for any dictionary.
24 %% TODO: Each group should test a type of dictionary against the generic cases.
27 [{group, ?GROUP_KV_LIST}].
35 [{?GROUP_KV_LIST, Properties, Tests}].
38 %% =============================================================================
40 %% =============================================================================
45 ListInitial = hope_kv_list:empty(),
46 ListResulting = hope_kv_list:set(ListInitial, Key, ValExpected),
47 {some, ValResulting} = hope_kv_list:get(ListResulting, Key),
48 ValResulting = ValExpected.
50 t_set_existing(_Config) ->
54 ListInitial = [{donald, duck}, {Key, ValInitial}],
55 ListResulting = hope_kv_list:set(ListInitial, Key, ValExpected),
56 {some, ValResulting} = hope_kv_list:get(ListResulting, Key),
57 ValResulting = ValExpected.