quick-generator-0.3: Generator random test data for QuickCheck

Testing.QuickGenerator

Synopsis

Documentation

(??*) :: [a] -> (Int, Int) -> Gen [a]Source

 sample $ "abcd" ??* (0,2)
  ["","da","","","c","bc","d","d","","ab","c"]

(?*) :: Gen [a] -> (Int, Int) -> Gen [a]Source

 sample $ ['a'..'z'] ??* (0,2) ?* (3,3)
   ["zc","jf","gwgob","uc","rll","jnxjjr","bycd","s","nja","cm","tu"]

repeatWithInter :: Gen [a] -> Gen [a] -> (Int, Int) -> Gen [a]Source

repeatWithInter g i (min, max) repeat g with inset i from min to max times.

(.|) :: Gen a -> Gen a -> Gen aSource

Or .

(.++) :: Gen [a] -> Gen [a] -> Gen [a]Source

Concatetion.

el :: [a] -> Gen [a]Source

Castom elements.

 el xs =  (\x -> [x]) `fmap` elements xs