-
Notifications
You must be signed in to change notification settings - Fork 40
Add is (not) empty #82
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers