mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
seq: add test for call without args
This commit is contained in:
parent
644fd1c93e
commit
98264e9cdf
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,14 @@ fn test_invalid_arg() {
|
||||||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_no_args() {
|
||||||
|
new_ucmd!()
|
||||||
|
.fails()
|
||||||
|
.code_is(1)
|
||||||
|
.stderr_contains("missing operand");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_hex_rejects_sign_after_identifier() {
|
fn test_hex_rejects_sign_after_identifier() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
|
|
Loading…
Reference in a new issue