Skip to content

Instantly share code, notes, and snippets.

@voila
Created December 4, 2013 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voila/7780999 to your computer and use it in GitHub Desktop.
Save voila/7780999 to your computer and use it in GitHub Desktop.
%% For any integer X and any list of integers L,
%% if I delete X from L, then L should not contain X
prop_delete1() ->
?FORALL({X,L}, %% variables
{integer(), list(integer())}, %% generators
not lists:member(X, delete_all(X, L))). %% property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment