Mercurial > hg > th-libs
changeset 532:ad64c3f7cf64
Adjust printf int formatting test values and format specifiers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 28 Dec 2019 13:29:59 +0200 |
parents | f43c961cc85d |
children | ef0d732fabe0 |
files | tests.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests.c Sat Dec 28 11:09:29 2019 +0200 +++ b/tests.c Sat Dec 28 13:29:59 2019 +0200 @@ -580,14 +580,14 @@ // // Test series for printf() // - char *i_fmts[] = { "", "05", "6", ".4", "8.5", "08.5", "3", "2.2", "3", "1", "18", "018", ".0", "0" }; + char *i_fmts[] = { "", "05", "6", ".4", "8.5", "08.5", "3", "2.1", "3", "1", "18", "018", ".0", "0" }; char *i_mods[] = { "", "-", "+", "#", }; char *i_types[] = { "d", "u", "i", "x", "X", "o", }; if (test_set_start("printf() integer")) { int i_vals[] = { - 0, -0, -1, 2, -2, 512, -1024, 612342, - -612342, 0x1fff, 0x8000000, -123456789, + 0, -0, 1, -1, 10, -10, 512, -512, -1024, + 612342, -612342, 0x1fff, 0x8000000, -123456789, 4294967295, -2147483648 }; for (i1 = 0; i1 < NCOUNT(i_vals); i1++) @@ -606,7 +606,9 @@ if (test_set_start("printf() integer 64bit")) { - int64_t i_vals64[] = { 0, -0, -1, 2, -2, 612342, -612342, 0x3342344341fff, 0x1f8000000, }; + int64_t i_vals64[] = { + 0, -0, 1, -1, 10, -10, + 0x3342344341fff, 0x1f8000000, }; for (i1 = 0; i1 < NCOUNT(i_vals64); i1++) {