Skip to content

Fun examples for exercising QCheck's function generator

Notifications You must be signed in to change notification settings

jmid/qcheck-fun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QCheck-fun: Fun examples for exercising QCheck's function generator

This is a collection of examples from

Note: latest commit tests QCheck 6448cc4cc1bdf5b0ee169143fadef3004557638b

Some observations:

  • shrinking is much more effective

  • shrinking may occasionally take very long

  • some things could potentially be shrunk even further, e.g., the 7414 here:

    Test map filter failed (40 shrink steps):

    ({_ -> 0}, {7414 -> false; _ -> true}, [7414])

Old observations:

  • shrinking does not work as well over functions (counterexamples are even greater with int generator)
  • the printed functions are partial (Claessen in Haskell and Norell's eqc_fun in Erlang prints them with a final _ catch all case)
  • can one express Norell's prop_losing as a recursive invocation of QCheck_runner.run_tests?

About

Fun examples for exercising QCheck's function generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published