Hash :
c15fb773
Author :
Date :
2024-03-05T12:21:36
c-strtold: Add tests. * tests/test-strtold.h: New file, extracted from tests/test-strtold.c. * tests/test-strtold.c: Include test-strtold.h. (FABSL): Remove unused macro. (main): Just invoke test_function. * tests/test-strtold1.c: Add comment. * modules/strtold-tests (Files): Add tests/test-strtold.h. * tests/test-c-strtold.c: New file, based on tests/test-strtold.c. * tests/test-c-strtold1.c: New file, based on tests/test-strtold1.c. * tests/test-c-strtold1.sh: New file, based on tests/test-strtold1.sh. * modules/c-strtold-tests: New file, based on modules/strtold-tests.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
/* Test of strtold() in the "C" locale.
Copyright (C) 2008-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* Written by Eric Blake. */
#include <config.h>
/* Specification. */
#include <stdlib.h>
#include "signature.h"
SIGNATURE_CHECK (strtold, long double, (char const *, char **));
#include <errno.h>
#include <float.h>
#include <math.h>
#include <string.h>
#include "isnanl-nolibm.h"
#include "minus-zero.h"
#include "macros.h"
#include "test-strtold.h"
int
main (void)
{
test_function (strtold);
return 0;
}