Macro assertor::check_that
source · macro_rules! check_that { ($actual:expr) => { ... }; }
Expand description
Only for library developers. An assertion macro to get the result of assertion without throwing panic. Expected to be used for testing assertion library.
§Example
ⓘ
use assertor::*;
use assertor::testing::*;
assert_that!(check_that!("actual_string").is_same_string_to("expected_string")).facts_are(vec![
Fact::new("expected", "expected_string"),
Fact::new("actual", "actual_string"),
]);