Test and fix malloc_printf("%%").

This commit is contained in:
Jason Evans
2014-01-22 09:00:27 -08:00
parent 0dec3507c6
commit 0c4e743eaf
2 changed files with 8 additions and 7 deletions

View File

@@ -181,6 +181,8 @@ TEST_BEGIN(test_malloc_snprintf)
TEST("hello", "hello");
TEST("50%, 100%", "50%%, %d%%", 100);
TEST("a0123b", "a%sb", "0123");
TEST("a 0123b", "a%5sb", "0123");