Skip to main content

assert_expected_count

Function assert_expected_count 

Source
pub fn assert_expected_count(
    actual: usize,
    expected: usize,
    item_type: &str,
    strict: bool,
) -> Result<()>
Expand description

Assert the expected count in strict mode.

ยงErrors

Returns an error when strict mode is enabled and counts differ.