1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #5233 from cakebaker/mknod_remove_unnecessary_not_in_test

mknod: remove unnecessary "not" in test
This commit is contained in:
Sylvestre Ledru 2023-09-02 16:21:36 +02:00 committed by GitHub
commit 1f65375b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ mod test {
assert_eq!(super::parse_mode("u+x").unwrap(), 0o766); assert_eq!(super::parse_mode("u+x").unwrap(), 0o766);
assert_eq!( assert_eq!(
super::parse_mode("+x").unwrap(), super::parse_mode("+x").unwrap(),
if !is_wsl() { 0o777 } else { 0o776 } if is_wsl() { 0o776 } else { 0o777 }
); );
assert_eq!(super::parse_mode("a-w").unwrap(), 0o444); assert_eq!(super::parse_mode("a-w").unwrap(), 0o444);
assert_eq!(super::parse_mode("g-r").unwrap(), 0o626); assert_eq!(super::parse_mode("g-r").unwrap(), 0o626);