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

Merge pull request #6854 from sylvestre/fmt

fmt: generate an error if the input is a directory
This commit is contained in:
Daniel Hofstetter 2024-11-18 16:18:41 +01:00 committed by GitHub
commit 19a19f004f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -9,6 +9,11 @@ fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
#[test]
fn test_invalid_input() {
new_ucmd!().arg(".").fails().code_is(1);
}
#[test]
fn test_fmt() {
new_ucmd!()