mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
seq: adjust some error messages. GNU's are better (#5798)
* seq: adjust some error messages. GNU's are better tested by tests/seq/seq.pl * uucore: remove todo --------- Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
parent
d158f1a396
commit
247f2e55bd
2 changed files with 30 additions and 7 deletions
|
@ -766,3 +766,17 @@ fn test_invalid_zero_increment_value() {
|
|||
.no_stdout()
|
||||
.usage_error("invalid Zero increment value: '0'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_invalid_format() {
|
||||
new_ucmd!()
|
||||
.args(&["-f", "%%g", "1"])
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.stderr_contains("format '%%g' has no % directive");
|
||||
new_ucmd!()
|
||||
.args(&["-f", "%g%g", "1"])
|
||||
.fails()
|
||||
.no_stdout()
|
||||
.stderr_contains("format '%g%g' has too many % directives");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue