Skip to content

Commit 3cdc248

Browse files
committed
printf: Add integration test for %q ''
1 parent 726b125 commit 3cdc248

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/by-util/test_printf.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ fn sub_q_string_special_non_printable() {
222222
.stdout_only("non-printable: test~");
223223
}
224224

225+
#[test]
226+
fn sub_q_string_empty() {
227+
new_ucmd!().args(&["%q", ""]).succeeds().stdout_only("''");
228+
}
229+
225230
#[test]
226231
fn sub_char() {
227232
new_ucmd!()

0 commit comments

Comments
 (0)