1
Fork 0
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:
ALXD 2023-11-15 17:46:58 +01:00
parent b3eae16fad
commit 3cdb0966ae

View file

@ -258,6 +258,14 @@ fn sub_num_hex_upper() {
.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]
fn sub_num_float() {
new_ucmd!()