13 { "000,,,e1", ",,,e1", 0.0 },
15 { "000,1e1", ",1e1", 0.0 }
17 #define NTESTS (sizeof (tests) / sizeof (tests[0]))
23 if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL)
25 puts ("could not set locale");
31 for (int i = 0; i < NTESTS; ++i)
34 double r = __strtod_internal (tests[i].in, &ep, 1);
36 if (strcmp (ep, tests[i].out) != 0)
38 printf ("%d: got rest string \"%s\", expected \"%s\"\n",
43 if (r != tests[i].expected)
45 printf ("%d: got wrong results %g, expected %g\n",
46 i, r, tests[i].expected);
54 #define TEST_FUNCTION do_test ()
55 #include "../test-skeleton.c"