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
|
@ -336,7 +336,10 @@ fn test_filter_with_env_var_set() {
|
|||
|
||||
let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$");
|
||||
assert_eq!(glob.collate(), at.read_bytes(name));
|
||||
assert!(env::var("FILE").unwrap_or_else(|_| "var was unset".to_owned()) == env_var_value);
|
||||
assert_eq!(
|
||||
env::var("FILE").unwrap_or_else(|_| "var was unset".to_owned()),
|
||||
env_var_value
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue