mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
fix lint errors
This commit is contained in:
parent
68b1f04f7d
commit
bb64e699ec
1 changed files with 3 additions and 5 deletions
|
@ -202,11 +202,9 @@ fn test_shuf_multiple_input_line_count() {
|
||||||
let result = new_ucmd!()
|
let result = new_ucmd!()
|
||||||
.args(&["-i10-200", "-n", "10", "-n", "5"])
|
.args(&["-i10-200", "-n", "10", "-n", "5"])
|
||||||
.succeeds();
|
.succeeds();
|
||||||
|
|
||||||
result.no_stderr();
|
result.no_stderr();
|
||||||
|
|
||||||
let result_seq = result
|
let result_count = result.stdout_str().split('\n').filter(|x| !x.is_empty()).count();
|
||||||
.stdout_str()
|
assert_eq!(result_count, 5, "Output should have 5 items");
|
||||||
.split('\n')
|
|
||||||
.filter(|x| !x.is_empty());
|
|
||||||
assert_eq!(result_seq.count(), 5, "Output should have 5 items");
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue