fn almost_equal(a: u128, b: u128) {
        if a >= b {
            assert!(a - b <= 1);
        } else {
            assert!(b - a <= 1);
        }
    }
/// Check that two numbers are within 1 of each other
Check that two numbers are within 1 of each other
Check that two numbers are within 1 of each other
fn almost_equal(a: u128, b: u128) {
        if a >= b {
            assert!(a - b <= 1);
        } else {
            assert!(b - a <= 1);
        }
    }
fn almost_equal ( a : u128 , b : u128 ) { if a >= b { assert ! ( a b 1 ) ; } else { assert ! ( b a 1 ) ; } }
Check that two numbers are within 1 of each other
Check that two numbers are within 1 of each other
a
u128
b
u128
a
u128
b
u128