Mercurial > hg > th-libs
diff tests.c @ 317:c532088b4f05
Fix float tests (type was int) :D
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 22 Feb 2016 23:43:50 +0200 |
parents | 2b657dcf346e |
children | f2af6049d958 |
line wrap: on
line diff
--- a/tests.c Mon Feb 22 23:42:29 2016 +0200 +++ b/tests.c Mon Feb 22 23:43:50 2016 +0200 @@ -323,7 +323,7 @@ if (test_set_start("printf() float")) { - int f_vals[] = { 2.02, 612342.234, -2.07, -612342.12, 0x1fff, 0x8000000, }; + double f_vals[] = { 2.02, 612342.234, -2.07, -612342.12, 437692.9876543219, 0x1fff, 0x8000000, }; char *f_fmts[] = { "%f", "%1.1f", "%5.5f", "%5f", "%-5f", "", "%-2.2f", "%05.5f" }; for (i1 = 0; i1 < sizeof(f_vals) / sizeof(f_vals[0]); i1++)