Generators for predicate specifications
Specifications are used to generate a wide range of random data. A generator for the specification is obtained and then data is generated.
Predicate generators
(spec-gen/generate (spec/gen int?))
(spec-gen/generate (spec/gen nil?))
(spec-gen/sample (spec/gen string?))
(spec-gen/generate (spec/gen #{:club :diamond :heart :spade}))
(spec-gen/sample (spec/gen #{:club :diamond :heart :spade}))