6 #define NBSP "\xc2\xa0"
15 { "000"NBSP
"000"NBSP
"000", "", 0.0 },
16 { "1"NBSP
"000"NBSP
"000,5x", "x", 1000000.5 }
18 #define NTESTS (sizeof (tests) / sizeof (tests[0]))
24 if (setlocale (LC_ALL
, "cs_CZ.UTF-8") == NULL
)
26 puts ("could not set locale");
32 for (int i
= 0; i
< NTESTS
; ++i
)
35 double r
= __strtod_internal (tests
[i
].in
, &ep
, 1);
37 if (strcmp (ep
, tests
[i
].out
) != 0)
39 printf ("%d: got rest string \"%s\", expected \"%s\"\n",
44 if (r
!= tests
[i
].expected
)
46 printf ("%d: got wrong results %g, expected %g\n",
47 i
, r
, tests
[i
].expected
);
55 #define TEST_FUNCTION do_test ()
56 #include "../test-skeleton.c"