|
@@ -89,4 +89,8 @@ rc = curl_msnprintf(output, 16, "%8d%8d", 1234, 5678);
|
|
|
fail_unless(rc == 15, "return code should be 15");
|
|
|
fail_unless(!strcmp(output, " 1234 567"), "wrong output");
|
|
|
|
|
|
+/* double precision */
|
|
|
+rc = curl_msnprintf(output, 24, "%.*1$.99d", 3, 5678);
|
|
|
+fail_unless(rc == 0, "return code should be 0");
|
|
|
+
|
|
|
UNITTEST_STOP
|