1 # Test data for tst-nomeric, which checks it's implementation in glibc
2 # Copyright (C) 2003-2023 Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
4 # Contributed by Petter Reinholdtsen <pere@hungry.com>, 2003
5 # Based on code by Jochen Hein <jochen.hein@delphi.central.de>, 1997.
8 # The GNU C Library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2.1 of the License, or (at your option) any later version.
13 # The GNU C Library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with the GNU C Library; if not, see
20 # <https://www.gnu.org/licenses/>.
22 # The format of this file is pretty simple: Each line contains a test
23 # for strfmon. Fields are separated by TABs. Lines that start with a
24 # '#' are comments and are ignored.
27 # #1 locale which is to be checked
28 # #2 format string which is fed into snprintf
29 # #3 double value that is used for formatting
30 # #4 the expected result (may contain trailing spaces!)
32 # First the implementation without any locale-dependent data
43 # Locale-dependent test.
45 nn_NO.ISO-8859-1 %'g 123.45 123,45
46 nn_NO.ISO-8859-1 %'g -123.45 -123,45