1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

Merge pull request #2548 from miDeb/chown/test

chown: fix unit test
This commit is contained in:
Sylvestre Ledru 2021-08-06 08:43:07 +02:00 committed by GitHub
commit a76be9cb1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: "));
} }
} }