Skip to content

Add it (not) matches_regex ... #80

@luke-biel

Description

@luke-biel

As an user of test case I want to be able to test whether actual value matches giver regular expression within complex assertions, eg.:

#[test_case("1" => it matches_regex "[0-9]")]
fn test_this(s: &str) -> &str {
	s
}

This feature has to be hidden behind feature flag (regex) and require user to manually import https://docs.rs/regex/latest/regex/ crate

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions