speculative
speculative copied to clipboard
Unofficial community-driven specs for clojure.core
After seeing this example, I think it should be feasible using repl.it: https://repl.it/@dundalek/closh-playground
clojure.core has started work on https://github.com/clojure/spec-alpha2 It would be nice to run our tests against this version as well.
The cause is probably that `spec-checking-fn` calls `with-instrument-disabled`, which calls `binding` which expands in a call to `hash-map`, so there's a loop. See https://github.com/clojure/clojure/blob/ee3553362de9bc3bfd18d4b0b3381e3483c2a34c/src/clj/clojure/core.clj#L1947. Repro: ``` $ clj -A:test -m...
See https://github.com/planck-repl/planck/issues/831 and e.g. this build: https://circleci.com/gh/borkdude/speculative/231
``` $ clj -A:test -m cljs.main -re node ClojureScript 1.10.439 cljs.user=> (require '[speculative.instrument :refer [instrument]]) nil cljs.user=> (instrument) [cljs.core/keep cljs.core/comp cljs.core/rest clojure.set/intersection cljs.core/re-seq clojure.string/starts-with? clojure.set/project clojure.set/index cljs.core/filter cljs.core/keys cljs.core/dec cljs.core/not-any?...
Speculative has a spec for `merge-with`. In https://github.com/borkdude/advent-of-spec/tree/master/src/aos I'm running tests with instrumentation on, but even when I make deliberate mistakes in the second test ns, no fdef is triggered....