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

stat: should fail without arguments #5928 (#5935)

* stat: should fail without arguments #5928

* style and lint issue  stat: should fail without arguments #5928

* style and lint issue  stat: should fail without arguments #5928

* style and lint 2 issue  stat: should fail without arguments #5928

---------

Co-authored-by: biplab5464 <biplab5464@outlook.com>
This commit is contained in:
Biplab Mochan Gartia 2024-02-02 21:30:35 +05:30 committed by GitHub
parent eead44172d
commit fd4e1cfb28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View file

@ -338,3 +338,10 @@ fn test_stdin_redirect() {
.stdout_contains("File: -")
.succeeded();
}
#[test]
fn test_without_argument() {
new_ucmd!()
.fails()
.stderr_contains("missing operand\nTry 'stat --help' for more information.");
}