Skip to main content

assert_benford_compliant

Macro assert_benford_compliant 

Source
macro_rules! assert_benford_compliant {
    ($amounts:expr, $tolerance:expr) => { ... };
}
Expand description

Assert that an amount follows Benford’s Law distribution within tolerance. This checks if the first digit distribution matches expected frequencies.