Tests: Refactor: Neaten

This commit is contained in:
andy.boot
2021-08-05 16:22:07 +01:00
parent 3458c98bd0
commit 87b1f50b39
+3 -5
View File
@@ -56,11 +56,9 @@ fn run_dust_with<T: AsRef<OsStr>>(params: Vec<T>) -> String {
}
fn check_dust_output(output: String, func: fn() -> Vec<String>) {
let mut we_match = false;
for mo in func() {
we_match = we_match || output.contains(&mo);
}
assert!(we_match);
assert!(func()
.iter()
.fold(false, |sum, i| sum || output.contains(i)));
}
// "windows" result data can vary by host (size seems to be variable by one byte); fix code vs test and re-enable