stathissideris / spec-provider

Infer Clojure specs from sample data. Inspired by F#'s type providers.
519 stars 22 forks source link

Consider min/max constraints as well in the inferred spec #11

Closed anujsrc closed 7 years ago

anujsrc commented 7 years ago

Currently, spec-provider captures the stats correctly for each number, like- min/max, etc. but does not consider the same while generating the spec. It would be good to provide an option to impose the same on the generated spec by default. As of now, you need to define it explicitly and then merge with the existing spec that is one added step for the users.

stathissideris commented 7 years ago

This is now implemented in 0.4.9

anujsrc commented 7 years ago

Thanks @stathissideris - I will try it out