diff --git a/tests/integration.rs b/tests/integration.rs index 67c1bda..c9f1c60 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -111,6 +111,7 @@ fn clean_and_parse(target: &TempDir, args: &[&str]) -> Result { Ok(cleaned) } +#[allow(clippy::uninlined_format_args)] fn count_cleaned(target: &TempDir, args: &[&str], old_size: u64) -> Result { let cleaned = clean_and_parse(target, args)?; @@ -121,6 +122,7 @@ fn count_cleaned(target: &TempDir, args: &[&str], old_size: u64) -> Result let calculated_size = old_size - cleaned; let diff = new_size.abs_diff(calculated_size); let one_percent = old_size as f64 * 0.01; + assert!( diff <= one_percent as u64, "new_size={}, old_size={}, cleaned={}, diff={}, 1%={}",