fn wrapping_range_format(r: &RangeInclusive<u128>, max_hi: u128) -> String {
    let (lo, hi) = r.clone().into_inner();
    assert!(hi <= max_hi);
    if lo > hi {
        format!("less or equal to {}, or greater or equal to {}", hi, lo)
    } else if lo == hi {
        format!("equal to {}", lo)
    } else if lo == 0 {
        assert!(hi < max_hi, "should not be printing if the range covers everything");
        format!("less or equal to {}", hi)
    } else if hi == max_hi {
        assert!(lo > 0, "should not be printing if the range covers everything");
        format!("greater or equal to {}", lo)
    } else {
        format!("in the range {:?}", r)
    }
}
// Formats such that a sentence like "expected something {}" to mean
// "expected something <in the given range>" makes sense.
Formats such that a sentence like "expected something {}" to mean
"expected something " makes sense.
Formats such that a sentence like " expected something {} " to mean " expected something " makes sense .
fn wrapping_range_format(r: &RangeInclusive<u128>, max_hi: u128) -> String {
    let (lo, hi) = r.clone().into_inner();
    assert!(hi <= max_hi);
    if lo > hi {
        format!("less or equal to {}, or greater or equal to {}", hi, lo)
    } else if lo == hi {
        format!("equal to {}", lo)
    } else if lo == 0 {
        assert!(hi < max_hi, "should not be printing if the range covers everything");
        format!("less or equal to {}", hi)
    } else if hi == max_hi {
        assert!(lo > 0, "should not be printing if the range covers everything");
        format!("greater or equal to {}", lo)
    } else {
        format!("in the range {:?}", r)
    }
}
fn wrapping_range_format ( r : & RangeInclusive < u128 > , max_hi : u128 ) -> String { let ( lo , hi ) = r . clone ( ) . into_inner ( ) ; assert ! ( hi max_hi ) ; if lo > hi { format ! ( " " hi lo ) } else if lo == hi { format ! ( " " lo ) } else if lo == 0 { assert ! ( hi max_hi " " ) ; format ! ( " " hi ) } else if hi == max_hi { assert ! ( lo 0 " " ) ; format ! ( " " lo ) } else { format ! ( " " r ) } }
Formats such that a sentence like "expected something {}" to mean
"expected something <in the given range>" makes sense.
Formats such that a sentence like " expected something {} " to mean " expected something <in the given range > " makes sense .
r
&RangeInclusive<u128>
max_hi
u128