1 -module(hope_list_SUITE).
11 [ t_unique_preserve_order/1
15 -define(GROUP , hope_list).
18 %% ============================================================================
19 %% Common Test callbacks
20 %% ============================================================================
27 [ t_unique_preserve_order
30 [{?GROUP, Properties, Tests}].
33 %% =============================================================================
35 %% =============================================================================
37 t_unique_preserve_order(_Cfg) ->
38 ListAGiven = [a, a, g, b, f, c, a, d, a, e, f, d],
39 ListBGiven = "australia",
40 ListAExpected = [a, g, b, f, c, d, e],
41 ListBExpected = "austrli",
42 ListAComputed = hope_list:unique_preserve_order(ListAGiven),
43 ListBComputed = hope_list:unique_preserve_order(ListBGiven),
44 ListAComputed = ListAExpected,
45 ListBComputed = ListBExpected.