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:
parent
a77e218a79
commit
a27880e8a3
16 changed files with 71 additions and 60 deletions
|
@ -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"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue