Closed camdez closed 1 year ago
Actually, better to reverse the :and
order if you're generating examples, otherwise it'll generate random keywords to test against the enumeration:
(m/decode [:and [:enum :kikka :kukka] keyword?] "kukka" mt/string-transformer)
;; => :kukka
Ahh, I see now that this is new and unreleased (#782, #784).
Closing.
The README says:
But when I evaluate this locally (v0.9.2), I get:
For anyone struggling with this, you can use
:and
to get the desired behavior: