Add machi_ap_repair_eqc:sublist()
This commit is contained in:
parent
d5c56980b3
commit
ac10f97220
1 changed files with 5 additions and 0 deletions
|
@ -213,6 +213,11 @@ all_list_extra(Num) ->
|
|||
DirBase ++ "/data.eqc." ++ FLUNameStr}
|
||||
end || I <- lists:seq(1, Num)].
|
||||
|
||||
sublist(L) ->
|
||||
?LET(K, nat(),
|
||||
?LET(L2, eqc_gen:vector(K, eqc_gen:oneof(L)),
|
||||
lists:usort(L2))).
|
||||
|
||||
%% Generator for possibly assymmetric partition information
|
||||
partition(FLUNames) ->
|
||||
frequency([{10, return([])},
|
||||
|
|
Loading…
Reference in a new issue