Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- fakeQuickcheck' :: FakerSettings -> Fake a -> Gen a
- fakeQuickcheck :: Fake a -> Gen a
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.
fakeQuickcheck :: Fake a -> Gen a Source #