Fork me on GitHub
#clojure-spec
<
2019-08-11
>
norton14:08:47

Working example with 'dc960158ccb9cf8b5dc555842eea5e1af12f28c2'

norton14:08:58

Failing example with '2bd68ffee3a775e6fa0f925260b94a9c421787c0'

norton14:08:17

@alexmiller Please see these two examples. The latest version 'ca131c1bec353a6ebe4fe8e0a8b6f8825734ef42' behaves the same as the failing example.

seancorfield20:08:39

Definitely related to (s/def ::bar ::baz) since you can do this

user=> (s/def ::quux (s/keys :req-un [::baz]))
:user/quux
user=> (gen/sample (s/gen ::quux))
({:baz 0} {:baz -1} {:baz -1} {:baz -3} {:baz -3} {:baz -2} {:baz 0} {:baz 3} {:baz 0} {:baz -1})
user=>    

seancorfield21:08:43

Yup. Just confirmed that works now!