mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge branch 'main' into issue-5766
This commit is contained in:
commit
b309d64e78
14 changed files with 435 additions and 94 deletions
|
@ -786,3 +786,17 @@ fn test_default_g_precision() {
|
|||
.succeeds()
|
||||
.stdout_only("000001e+06\n");
|
||||
}
|
||||
|
||||
#[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