Skip to content

Does not fully work with pretty_assertions, fix OK? #109

@vriesk

Description

@vriesk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions