printf: Add integration test for %q ''

This commit is contained in:
Joseph Jon Booker
2025-04-12 21:44:06 -05:00
parent 8ff45c97f0
commit 9f1e7a2075
+5
View File
@@ -242,6 +242,11 @@ fn sub_q_string_special_non_printable() {
.stdout_only("non-printable: test~");
}
#[test]
fn sub_q_string_empty() {
new_ucmd!().args(&["%q", ""]).succeeds().stdout_only("''");
}
#[test]
fn sub_char() {
new_ucmd!()