nubank / matcher-combinators

Library for creating matcher combinator to compare nested data structures
Other
467 stars 23 forks source link

`Via` matcher #178

Closed philomates closed 2 years ago

philomates commented 2 years ago

it which transforms the actual data-structure before applying the expected matcher.

For example, it allows one to match a nested string as an clojure map:

(is (match? {:payloads [(m/via read-string {:foo :bar})]}
            {:payloads [\"{:foo :bar}\"]}))

(additional context in #148 and #175)

also bump midje and remove now unneeded io.aviso/pretty version pinning

dchelimsky commented 2 years ago

I think I like via, and this has been a long time coming. Impl/tests look great. I say let's do it, but I'll engage some more eyes first ...

dchelimsky commented 2 years ago

Released in matcher-combinators-3.6.0

dchelimsky commented 2 years ago

Thanks @philomates !!!!!!