Hoi,
If one uses assert_eq! or assert_ne! macros inside closures defined inside a #[test_case(...)], the drop-in replacement method provided by the pretty_assertions won't work, as the compilation fails on ambiguous resolution of those from use super::* here and the ::std provided one.
The solution would be to simply add a feature-guarded use ::pretty_assertions::{assert_eq, assert_ne} after the line above. Would not need test_case to depend on pretty_assertions even.
Would you accept a PR for that?
Hoi,
If one uses
assert_eq!orassert_ne!macros inside closures defined inside a#[test_case(...)], the drop-in replacement method provided by the pretty_assertions won't work, as the compilation fails on ambiguous resolution of those fromuse super::*here and the::stdprovided one.The solution would be to simply add a feature-guarded
use ::pretty_assertions::{assert_eq, assert_ne}after the line above. Would not needtest_caseto depend onpretty_assertionseven.Would you accept a PR for that?