Skip to content

Commit 958222a

Browse files
committed
test(cksum): un-ignore tests that are now implemented
1 parent 567bbc5 commit 958222a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/uucore/src/lib/features/checksum.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,8 +1337,7 @@ mod tests {
13371337
// Test leading space before checksum line
13381338
let line_algo_based_leading_space =
13391339
OsString::from(" MD5 (example.txt) = d41d8cd98f00b204e9800998ecf8427e");
1340-
let res = LineInfo::parse(&line_algo_based_leading_space, &mut cached_regex);
1341-
assert!(res.is_some());
1340+
let line_info = LineInfo::parse(&line_algo_based_leading_space, &mut cached_regex).unwrap();
13421341
assert_eq!(line_info.format, LineFormat::AlgoBased);
13431342
assert!(cached_regex.is_none());
13441343

tests/by-util/test_cksum.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,6 @@ mod check_utf8 {
14801480
}
14811481
}
14821482

1483-
#[ignore = "not yet implemented"]
14841483
#[test]
14851484
fn test_check_blake_length_guess() {
14861485
let correct_lines = [
@@ -1523,7 +1522,6 @@ fn test_check_blake_length_guess() {
15231522
.stderr_contains("foo.sums: no properly formatted checksum lines found");
15241523
}
15251524

1526-
#[ignore = "not yet implemented"]
15271525
#[test]
15281526
fn test_check_confusing_base64() {
15291527
let cksum = "BLAKE2b-48 (foo.dat) = fc1f97C4";

0 commit comments

Comments
 (0)