1 -module(hope_list_SUITE).
3 -include_lib("proper/include/proper.hrl").
13 [ t_unique_preserve_order/1
18 -define(GROUP , hope_list).
20 -define(PROPTEST(A), true = proper:quickcheck(A())).
23 %% ============================================================================
24 %% Common Test callbacks
25 %% ============================================================================
32 [ t_unique_preserve_order
35 Properties = [parallel],
36 [{?GROUP, Properties, Tests}].
39 %% =============================================================================
41 %% =============================================================================
43 t_unique_preserve_order(_Cfg) ->
44 ?PROPTEST(prop_unique_preserve_order).
46 prop_unique_preserve_order() ->
49 Duplicates = L -- lists:usort(L),
50 hope_list:unique_preserve_order(L) ==
51 lists:reverse(lists:reverse(L) -- Duplicates)
54 t_hope_list_specs(_) ->
55 [] = proper:check_specs(hope_list).