Skip to content

QCheck.char doesn't shrink (but QCheck2.Gen.char does) #166

Description

@jmid

I was surprised to discover this - illustrated by test char_is_never_abcdef.
QCheck reports a 'd' counterexample, while QCheck2 shrinks it to a:

Test char is never produces 'abcdef' failed (0 shrink steps): |	Test char is never produces 'abcdef' failed (1 shrink steps):
'd' |	'a'

This is a defect in QCheck.char IMO - users would expect it to shrink.

Originally posted by @jmid in #153 (comment)

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions