1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

chown: fix unit test

This commit is contained in:
Michael Debertol 2021-08-05 22:33:28 +02:00
parent 54f4c8ff35
commit ac6356087e

View file

@ -485,10 +485,7 @@ mod test {
#[test] #[test]
fn test_parse_spec() { fn test_parse_spec() {
assert_eq!(parse_spec(":"), Ok((None, None))); assert!(matches!(parse_spec(":"), Ok((None, None))));
assert!(parse_spec("::") assert!(format!("{}", parse_spec("::").err().unwrap()).starts_with("invalid group: "));
.err()
.unwrap()
.starts_with("invalid group: "));
} }
} }