Skip to content

improve shrink/3 for lists #3

Description

@mndrix

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions