Skip to content

assert_matches! output could be more consistent with std::assert_matches! #22

@xtqqczze

Description

@xtqqczze

The failure output from assertables::assert_matches! could be clearer.

Current output:

assertion failed: `assert_matches!(a)`
https://docs.rs/assertables/10.1.0/assertables/macro.assert_matches.html

This crate could perhaps be more consistent with std::assert_matches! in Rust 1.96, which uses output along the lines of:

assertion `left matches right` failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions