24 for (size_t i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i)
27 double r = strtod (tests[i].str, &ep);
28 if (r != tests[i].result)
30 printf ("test %zu r = %g, expect %g\n", i, r, tests[i].result);
33 if (ep != tests[i].str + tests[i].offset)
35 printf ("test %zu strtod parsed %tu characters, expected %zu\n",
36 i, ep - tests[i].str, tests[i].offset);
43 #define TEST_FUNCTION do_test ()
44 #include "../test-skeleton.c"