From 0c064ac0177db313e31fa4a83a284bb2abb60e51 Mon Sep 17 00:00:00 2001 From: Marcin Hajder Date: Tue, 2 Dec 2025 17:41:36 +0100 Subject: [PATCH] Added a test case for printing an empty string (#2590) Fixes #2364 according to issue description --- test_conformance/printf/util_printf.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_conformance/printf/util_printf.cpp b/test_conformance/printf/util_printf.cpp index 83a21fbb..0768adb5 100644 --- a/test_conformance/printf/util_printf.cpp +++ b/test_conformance/printf/util_printf.cpp @@ -1032,6 +1032,9 @@ testCase testCaseChar = { std::vector printStringGenParameters = { + // empty format, no data representation + { {""} }, + // empty format { {""}, "\"foo\"" }, @@ -1094,6 +1097,8 @@ std::vector correctBufferString = { "", + "", + " foo", "f",