Skip to main content

assert_difference

Function assert_difference 

Source
pub fn assert_difference<F>(
    get_value: impl Fn() -> i64,
    expected_diff: i64,
    f: F,
)
where F: FnOnce(),
Expand description

Asserts that a numeric value changed by the expected amount during closure execution.