mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
fmt: generate an error if the input is a directory
tested by tests/misc/read-errors
This commit is contained in:
parent
1d9e162637
commit
ab77eaea45
2 changed files with 12 additions and 0 deletions
|
@ -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!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue