mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
seq: Do not allow -w and -f to be specified at the same time
Fixes #7466.
This commit is contained in:
parent
d6cf38ff3f
commit
ae3756b434
3 changed files with 16 additions and 0 deletions
|
@ -19,6 +19,14 @@ fn test_no_args() {
|
|||
.stderr_contains("missing operand");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_format_and_equal_width() {
|
||||
new_ucmd!()
|
||||
.args(&["-w", "-f", "%f", "1"])
|
||||
.fails_with_code(1)
|
||||
.stderr_contains("format string may not be specified");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hex_rejects_sign_after_identifier() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue