How could I generate data based on concrete collection. e.g. I have a predefined list of accounts, need a generator that would generate data for each of the account in that list. e.g. (for [a accounts] (-> :account/spec s/gen gen/generate (merge a)))
- where :account/spec
is a spec of map. This snippet does not return a generator though, and I need a generator
can I run multiple assertions in defspec
?
I know, I probably shouldn’t, but...
what if?
should I just use and
?
yep
which obscures which leg failed when something fails
that sort of thing might improve in the future