1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tests: fix some clippy warnings

This commit is contained in:
Sylvestre Ledru 2024-05-25 09:02:54 +02:00
parent 4534f359f2
commit 09e53f3d2d
9 changed files with 52 additions and 72 deletions

View file

@ -472,7 +472,7 @@ fn test_with_escape_filename() {
at.touch(filename);
let result = scene.ccmd("md5sum").arg("--text").arg(filename).succeeds();
let stdout = result.stdout_str();
println!("stdout {}", stdout);
println!("stdout {stdout}");
assert!(stdout.starts_with('\\'));
assert!(stdout.trim().ends_with("a\\nb"));
}
@ -492,7 +492,7 @@ fn test_with_escape_filename_zero_text() {
.arg(filename)
.succeeds();
let stdout = result.stdout_str();
println!("stdout {}", stdout);
println!("stdout {stdout}");
assert!(!stdout.starts_with('\\'));
assert!(stdout.contains("a\nb"));
}
@ -526,7 +526,7 @@ fn test_check_with_escape_filename() {
at.touch(filename);
let result = scene.ccmd("md5sum").arg("--tag").arg(filename).succeeds();
let stdout = result.stdout_str();
println!("stdout {}", stdout);
println!("stdout {stdout}");
assert!(stdout.starts_with("\\MD5"));
assert!(stdout.contains("a\\nb"));
at.write("check.md5", stdout);