changeset 312:f1dfabd89a13

Improve tests.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Feb 2016 22:10:52 +0200
parents 31668615083e
children d6a9db84d702
files tests.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Mon Feb 22 22:00:43 2016 +0200
+++ b/tests.c	Mon Feb 22 22:10:52 2016 +0200
@@ -297,7 +297,7 @@
     //
     if (test_set_start("printf() integer"))
     {
-        int i_vals[] = { 2, 612342, -2, -612342, 0x1fff, 0x8000000, };
+        int i_vals[] = { 0, -0, -1, 2, -2, 612342, -612342, 0x1fff, 0x8000000, };
         char *i_fmts[] = { "%d", "%x", "%05d", "%5d", "%-5d", "%.5d", "%05x", "%5x", "", "% 3d", "% 3o", "%+3o", "%+3d", };
 
         for (i1 = 0; i1 < sizeof(i_vals) / sizeof(i_vals[0]); i1++)
@@ -404,7 +404,7 @@
         "======================================================\n");
 
     tprint(0,
-        "%d tests failed, %d passed (%d main tests), %d test sets of %d sets total.\n",
+        "%d tests failed, %d passed (%d main tests), %d test sets of %d sets total.\n\n",
         tests_failed, tests_passed, tests_total, tests_nenabled, tests_sets);
 
     return 0;