Midje icon indicating copy to clipboard operation
Midje copied to clipboard

Eductions are not considered sequential for midje collection checkers

Open cch1 opened this issue 9 years ago • 2 comments

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.

cch1 avatar Feb 17 '16 23:02 cch1

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.

marick avatar Feb 18 '16 22:02 marick

As I am transitioning away from Clojure to Elixir, it's unlikely this will happen unless someone contributes a pull request. Sorry.

marick avatar Sep 05 '16 22:09 marick