mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
printf: add a test for %x with invalid value
This commit is contained in:
parent
b3eae16fad
commit
3cdb0966ae
1 changed files with 8 additions and 0 deletions
|
@ -258,6 +258,14 @@ fn sub_num_hex_upper() {
|
||||||
.stdout_only("thirty in hex is 1E");
|
.stdout_only("thirty in hex is 1E");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn sub_num_hex_non_numerical() {
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["parameters need to be numbers %X", "%194"])
|
||||||
|
.fails()
|
||||||
|
.code_is(1);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn sub_num_float() {
|
fn sub_num_float() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue