Closed luke-biel closed 2 years ago
As an user of test case I want to be able to test whether actual value is empty within complex assertions, eg.:
actual
#[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.
#expr.is_empty()
As an user of test case I want to be able to test whether
actual
value is empty within complex assertions, eg.:We can rely on
#expr.is_empty()
and that user supplies a type that has such function.