Fork me on GitHub
#clojure-spec
<
2018-03-09
>
guy12:03:43

Hi people, whats the best way to generate a not blank string?

gfredericks12:03:16

you can wrap the generator in gen/not-empty unless you meant something different by "blank"

guy12:03:46

ok thanks!

Andreas Liljeqvist15:03:55

I have made a fix for CLJ-2311 - an issue that was preventing me from providing an override for the dispatch-fn(key) in a multimethod

Andreas Liljeqvist15:03:28

please test it and leave comments

gfredericks17:03:39

spec doesn't have anything analogous to schema completers, is that correct?

gfredericks17:03:03

has anybody used spec somehow to fill in incomplete test data?

misha21:03:00

@gfredericks (merge (ffirst (s/exercise :foo/bar)) incomplete)? :)

gfredericks22:03:46

that works at one level, yes

gfredericks22:03:53

schema does it recursively