Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve shrink/3 for lists #3

Open
mndrix opened this issue Dec 15, 2013 · 0 comments
Open

improve shrink/3 for lists #3

mndrix opened this issue Dec 15, 2013 · 0 comments

Comments

@mndrix
Copy link
Collaborator

mndrix commented Dec 15, 2013

It's important to shrink lists correctly and efficiently. Many other types rely upon good behavior here. For example, shrinking an atom uses this code (via list(codes)). However a property like

prop_atom_fail(A:atom) :-
    atom_length(A,Len),
    Len < 3.

gives different "minimal" results each time: bMe, 'a^4', a.3, etc. The length is fine (could be more efficient) but shrinking elements needs improvement for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants