Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add it (not) matches_regex ... #80

Closed
Tracked by #75
luke-biel opened this issue Jan 27, 2022 · 0 comments
Closed
Tracked by #75

Add it (not) matches_regex ... #80

luke-biel opened this issue Jan 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@luke-biel
Copy link
Collaborator

luke-biel commented Jan 27, 2022

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

@luke-biel luke-biel changed the title (not) matches_regex Add it (not) matches_regex ... Jan 27, 2022
@luke-biel luke-biel added enhancement New feature or request good first issue Good for newcomers and removed good first issue Good for newcomers labels Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant