Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.08 KB

File metadata and controls

42 lines (32 loc) · 1.08 KB

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}))