Added support for three new keywords: panics, matches and inconclusive which can be applied after => token.
matches gives possibility to test patterns, like:
#[test_case("foo" => matches Some(("foo", _)))]
panics gives should_panic(expected="...") for one test_case:
#[test_case(true => panics "Panic error message" ; "This should panic")] #[test_case(false => None ; "But this should return None")]
inconclusive ignores one specific test case.- thanks to @luke_biel
#[test_case("42")] #[test_case("XX" ; "inconclusive - parsing letters temporarily doesn't work, but it's ok")] #[test_case("na" => inconclusive ())]
parented_test_case with parsing test_case directly from args - thanks to @luke-biellazy-static dependency to dev-dependenciesinsta to 0.12.0impl Trait - it worked in v2.x crate.version_check to v0.9.1syn, quote and proc-macro-2 to v1lazy-static to 1.4.0insta to 0.11.0Crate has new maintainer: Wojciech Polak :hand: :tada:
Crate has new name, as test-case-derive had no meaning for derive part.
Delimiter for test case description is ; instead of ::.
Reason: :: is valid part of expression and rustc treats const variable as path
test_case location.cargo insta for snapshot testing#[should_panic]