assert-rs / predicates-rs

Boolean-valued predicate functions in Rust
docs.rs/predicates
Apache License 2.0
173 stars 29 forks source link

Include NamePredicate in find_case results #92

Closed ramosbugs closed 3 years ago

ramosbugs commented 3 years ago

The NamePredicate is quite handy for improving the readability of failed assertions (in my case, when using the mockall crate). This PR adds the specified name to the output of find_case, which NamePredicate previously forwarded transparently to the child predicate.

epage commented 3 years ago

Thanks for adding this!

epage commented 3 years ago

v1.0.6 should now be available.

ramosbugs commented 3 years ago

wow! thank you for the blazing fast turnaround time 🔥