mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27: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
|
@ -389,8 +389,14 @@ fn test_traverse_symlinks() {
|
|||
.arg("dir3/file")
|
||||
.succeeds();
|
||||
|
||||
assert!(at.plus("dir2/file").metadata().unwrap().gid() == first_group.as_raw());
|
||||
assert!(at.plus("dir3/file").metadata().unwrap().gid() == first_group.as_raw());
|
||||
assert_eq!(
|
||||
at.plus("dir2/file").metadata().unwrap().gid(),
|
||||
first_group.as_raw()
|
||||
);
|
||||
assert_eq!(
|
||||
at.plus("dir3/file").metadata().unwrap().gid(),
|
||||
first_group.as_raw()
|
||||
);
|
||||
|
||||
ucmd.arg("-R")
|
||||
.args(args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue