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

Strictness for crashes interacts in funny ways with shrinking #400

Open
MaximilianAlgehed opened this issue May 3, 2024 · 0 comments
Open
Labels

Comments

@MaximilianAlgehed
Copy link
Collaborator

Consider the following:

$> quickCheck $ forAllShrink (pure undefined) (\ () -> []) $ \ () -> True
*** Failed! (after 1 test):                            
Exception while generating shrink-list:
  Prelude.undefined
  CallStack (from HasCallStack):
    undefined, called at <interactive>:8:33 in interactive:Ghci7
Exception thrown while showing test case:
  Prelude.undefined
  CallStack (from HasCallStack):
    undefined, called at <interactive>:8:33 in interactive:Ghci7

The fact that the first thing the user sees when they've screwed up in the generator is that the shrinker failed is not optimal.

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

No branches or pull requests

1 participant