ghostwheel

Hassle-free clojure.spec, automatic generative testing, side effect detection, and evaluation tracing for Clojure(-Script) – https://github.com/gnl/ghostwheel
Saikyun 2020-05-22T06:07:38.017200Z

@hindol.adhya I managed to dig up my changes to ghostwheel.core. this adds the << operator for generators, so you could do this:

(>defn path?
  [p]
  [any? => boolean?
   << (gen/fmap #(path %) (gen/string))]
  (instance? Path p))

Saikyun 2020-05-22T07:38:38.019Z

: )

Saikyun 2020-05-22T07:38:47.019200Z

hmu if you have any questions

Saikyun 2020-05-22T06:08:37.018200Z

I called the concept gen-args , so if you're curious what's going on underneath, just search the code for it 🙂

Saikyun 2020-05-22T06:09:01.018700Z

is this something you'd like a pull request for @clojurians.net? no idea if it's something you want in ghostwheel

gnl 2020-05-22T23:28:41.020Z

This looks good at first sight, but I wanna give it some more thought and also regarding the syntax. If you already have the code working and it's just a matter of hitting the Create PR button – please do, we can discuss it further on GitHub, so I don't have to keep track of it elsewhere.

Saikyun 2020-05-23T17:50:51.020400Z

done 🙂

gnl 2020-05-25T23:41:33.020800Z

Brilliant, thanks. 🙂 I have a ton of Ghostwheel-related things to sift through, but will have a look as soon as I can.

hindol 2020-05-22T06:13:39.018800Z

Super. Thanks a lot for digging this up. Will check it out.