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:
parent
54f4c8ff35
commit
ac6356087e
1 changed files with 2 additions and 5 deletions
|
@ -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: "));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue