mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
chore(checksum): fix clippy warnings in tests
This commit is contained in:
parent
8c4f595f24
commit
cfc66f9f6f
1 changed files with 3 additions and 3 deletions
|
@ -1056,7 +1056,7 @@ mod tests {
|
||||||
];
|
];
|
||||||
|
|
||||||
for (input, expected) in test_cases {
|
for (input, expected) in test_cases {
|
||||||
let captures = algo_based_regex.captures(*input);
|
let captures = algo_based_regex.captures(input);
|
||||||
match expected {
|
match expected {
|
||||||
Some((algo, bits, filename, checksum)) => {
|
Some((algo, bits, filename, checksum)) => {
|
||||||
assert!(captures.is_some());
|
assert!(captures.is_some());
|
||||||
|
@ -1206,7 +1206,7 @@ mod tests {
|
||||||
|
|
||||||
// Test leading space before checksum line
|
// Test leading space before checksum line
|
||||||
let lines_algo_based_leading_space =
|
let lines_algo_based_leading_space =
|
||||||
vec![" MD5 (example.txt) = d41d8cd98f00b204e9800998ecf8427e"]
|
[" MD5 (example.txt) = d41d8cd98f00b204e9800998ecf8427e"]
|
||||||
.iter()
|
.iter()
|
||||||
.map(|s| OsString::from(s.to_string()))
|
.map(|s| OsString::from(s.to_string()))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
@ -1216,7 +1216,7 @@ mod tests {
|
||||||
|
|
||||||
// Test trailing space after checksum line (should fail)
|
// Test trailing space after checksum line (should fail)
|
||||||
let lines_algo_based_leading_space =
|
let lines_algo_based_leading_space =
|
||||||
vec!["MD5 (example.txt) = d41d8cd98f00b204e9800998ecf8427e "]
|
["MD5 (example.txt) = d41d8cd98f00b204e9800998ecf8427e "]
|
||||||
.iter()
|
.iter()
|
||||||
.map(|s| OsString::from(s.to_string()))
|
.map(|s| OsString::from(s.to_string()))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue