Midje
Midje copied to clipboard
Eductions are not considered sequential for midje collection checkers
This is unfortunate:
((contains 3) (map inc (range 4)))
=> true
((contains 3) (eduction (map inc) (range 4)))
=> false
As more collection processing code moves towards transducers, eductions are a natural next step. Perhaps a mod to standardized-arguments
to realize the eduction with seq
would work.
That seems reasonable. I'm slowly implementing Midje's collection checkers in https://github.com/marick/structural-typing/ so that they get considerably better error handlers. I've made a note to handle eductions as you suggest.
As I am transitioning away from Clojure to Elixir, it's unlikely this will happen unless someone contributes a pull request. Sorry.