Last active
December 30, 2015 05:49
-
-
Save voila/7784985 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% custom generator for lists of duplicates | |
duplist(Type) -> | |
?LET(L,list(Type), | |
L ++ L). | |
prop_delete6() -> | |
?FORALL({X,L}, | |
{integer(), duplist(integer())}, %% our custom generator | |
collect({X, L}, %% show us the X and L generated | |
not lists:member(X, delete_all(X, L)))). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment