A minor release of https://github.com/igrishaev/any (smart objects for comparing in tests). Now all objects are based on IPersistentCollection with custom equiv method. New predicates:
• (= (any/count 3) [1 2 3])
• (= (any/starts-with "Error:") "Error: boom")
• (= (any/ends-with "world" "Hello world"))
• any/bytes, any/ints and other type of arrays
oh this is cool!
Ivan, did you see this library? https://github.com/HealthSamurai/matcho In your exmples we still need to write code to check conditions for nested map values. matcho library allows to avoid it. Anyway, good work!
Yes I saw it, and there are many matching libraries. I'm not saying they are bad and mine is better. Just experimenting.