1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

printf: Ignore thousand seperator flag

This commit is contained in:
Joseph Jon Booker 2025-04-06 22:27:12 -05:00
parent ef7a8c300e
commit 7df22051ea
2 changed files with 17 additions and 1 deletions

View file

@ -337,6 +337,16 @@ fn sub_num_int_char_const_in() {
.stdout_only("emoji is 128579");
}
#[test]
fn sub_num_thousands() {
// For "C" locale, the thousands separator is ignored but should
// not result in an error
new_ucmd!()
.args(&["%'i", "123456"])
.succeeds()
.stdout_only("123456");
}
#[test]
fn sub_num_uint() {
new_ucmd!()