This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-10
Channels
- # aws (45)
- # bangalore-clj (16)
- # beginners (109)
- # boot (137)
- # cider (7)
- # cljs-dev (54)
- # cljsrn (22)
- # clojure (77)
- # clojure-conj (1)
- # clojure-greece (2)
- # clojure-nl (5)
- # clojure-russia (36)
- # clojure-spec (15)
- # clojure-uk (54)
- # clojurescript (118)
- # cursive (7)
- # datomic (25)
- # emacs (33)
- # hoplon (276)
- # klipse (38)
- # lein-figwheel (1)
- # leiningen (9)
- # melbourne (1)
- # off-topic (18)
- # om (98)
- # onyx (6)
- # pedestal (1)
- # perun (24)
- # re-frame (46)
- # reagent (6)
- # ring-swagger (3)
- # spacemacs (67)
- # specter (15)
- # untangled (33)
- # vim (6)
Do I always have to specify my generators with with-gen
in the same spot as where I define the spec itself? Or could I assoc a generator later in say, a ns that is only used for testing? I am aware of that stest/check
takes the :gen
argument but I would like to have it while working in the REPL as well.
I could solve this by overwriting the sdef
but would like to know if there was a standard way.
You can use instrument to override generators at test time
Or repl time
@alexmiller Great! Thanks
Does anyone else encounter infinite loops when trying to spec a lazy sequence even though one uses every
instead of coll-of
?