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 is (not) empty #82

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

Add is (not) empty #82

luke-biel opened this issue Jan 27, 2022 · 0 comments · Fixed by #97
Labels
enhancement New feature or request good first issue Good for newcomers

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 is empty within complex assertions, eg.:

#[test_case("1" => is empty)] // fails
#[test_case("" => is empty)] // succeeds
fn test_this(s: &str) -> &str {
	s
}

We can rely on #expr.is_empty() and that user supplies a type that has such function.

@luke-biel luke-biel changed the title (not) empty - tested funciton can just return boolean Add is (not) empty Jan 27, 2022
@luke-biel luke-biel added enhancement New feature or request good first issue Good for newcomers labels Jan 27, 2022
@luke-biel luke-biel linked a pull request Apr 25, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant