fakedata-quickcheck-0.2.0: Fake a -> Gen a
Safe HaskellNone
LanguageHaskell2010

Test.QuickCheck.Gen.Faker

Synopsis

Documentation

fakeQuickcheck' :: FakerSettings -> Fake a -> Gen a Source #

Select a value Fake program in Gen.

Example property to check that names aren't empty:

λ> import Faker.Name (name)
λ> import Test.QuickCheck.Gen.Faker
λ> import qualified Test.QuickCheck as Q
λ> import qualified Data.Text as T
λ> Q.quickCheck (Q.forAll (fakeQuickcheck name) (not . T.null))
+++ OK, passed 100 tests.