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

Add a testPropertyFor to {hunit,tasty}-dejafu #159

Closed
barrucadu opened this issue Nov 29, 2017 · 0 comments
Closed

Add a testPropertyFor to {hunit,tasty}-dejafu #159

barrucadu opened this issue Nov 29, 2017 · 0 comments

Comments

@barrucadu
Copy link
Owner

There's a testProperty, which uses check', but nothing exposing checkFor. Something like this:

-- | Like testProperty, but takes a number of cases to check.
--
-- The maximum number of cases tried by @testPropertyFor n m@ will be @n * m@.
testPropertyFor :: (R.Testable p, R.Listable (R.X p), Eq (R.X p), Show (R.X p), Show (R.O p))
  => Int
  -- ^ Number of seed values per variable-assignment.
  -> Int
  -- ^ Number of variable assignments.
  -> String
  -- ^ The name of the test.
  -> p
  -- ^ The property to check.
  -> Test
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

1 participant