changeset 288:89c7696acb82

Add some tests.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Feb 2016 14:28:31 +0200
parents e214637b0645
children 7122026b0ece
files tests.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Mon Feb 22 13:51:14 2016 +0200
+++ b/tests.c	Mon Feb 22 14:28:31 2016 +0200
@@ -279,9 +279,18 @@
         for (i2 = 0; i2 < sizeof(s_fmts) / sizeof(s_fmts[0]); i2++)
             test_snprintf(s_fmts[i2], s_vals);
 
+    }
+
+    if (test_set_start("printf() function family #3"))
+    {
         test_snprintf("a%cBC", 'x');
         test_snprintf("%c", 'x');
         test_snprintf("", 'x');
+        test_snprintf("%0c", 'x');
+        test_snprintf("%1c", 'x');
+        test_snprintf("% c", 'x');
+        test_snprintf("%-3c", 'x');
+        test_snprintf("%3c", 'x');
     }
 
     //