Fork me on GitHub
#clojure-spec
<
2018-02-16
>
vikeri15:02:52

Hmm, I can’t generate positive numbers in clojurescript. (s/exercise pos?) doesn’t work. Any pointers?

Alex Miller (Clojure team)16:02:42

Pos is not specific to a particular numeric type so does not have a mapped generator

Alex Miller (Clojure team)16:02:35

Or create a composite like (s/and double? pos?) where the initial type will gen