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

fixed panic! formatting

This commit is contained in:
Mikadore 2021-03-31 13:30:06 +02:00
parent 96643d6f91
commit b8079098f2
5 changed files with 22 additions and 23 deletions

View file

@ -98,7 +98,8 @@ fn test_head_count() {
assert_eq!(result_seq.len(), repeat_limit, "Output is not limited");
assert!(
result_seq.iter().all(|x| input_seq.contains(x)),
format!("Output includes element not from input: {}", result)
"Output includes element not from input: {}",
result
)
}
@ -133,13 +134,11 @@ fn test_repeat() {
);
assert!(
result_seq.iter().all(|x| input_seq.contains(x)),
format!(
"Output includes element not from input: {:?}",
result_seq
.iter()
.filter(|x| !input_seq.contains(x))
.collect::<Vec<&i32>>()
)
"Output includes element not from input: {:?}",
result_seq
.iter()
.filter(|x| !input_seq.contains(x))
.collect::<Vec<&i32>>()
)
}