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

chore: use assert_eq! and assert_ne! instead of assert!

Makes intent clearer, and if something fails, prints the values that caused the failure as part of the panic message.
This commit is contained in:
Yuri Astrakhan 2025-04-08 13:25:12 -04:00
parent a77e218a79
commit a27880e8a3
16 changed files with 71 additions and 60 deletions

View file

@ -1045,8 +1045,9 @@ mod tests_split_iterator {
);
}
Ok(actual) => {
assert!(
expected == actual.as_slice(),
assert_eq!(
expected,
actual.as_slice(),
"[{i}] After split({input:?}).unwrap()\nexpected: {expected:?}\n actual: {actual:?}\n"
);
}