Fork me on GitHub
#clojure-spec
<
2018-02-08
>
justinbarclay14:02:10

I’m learning about cljs.spec, but when I try to run the code below in a figwheel repl it times out. Does anyone know why or how I can improve my spec?

(defn split-in-half
  "Splits a collection in half"
  [coll]
  (split-at (Math/round (/ (count coll) 2)) coll))

(spec/fdef split-in-half
           :args (spec/cat :col coll?)
           :ret  (spec/tuple coll? coll?))

(stest/abbrev-result (first (stest/check `split-in-half))

mpenet16:02:15

Expected, merge doesn't flow conformed values. This one comes up quite often

mpenet16:02:52

There s a (closed) jira issue about this