1# Test data for tst-nomeric, which checks it's implementation in glibc
2# Copyright (C) 2003-2022 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.
6#
7
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.
12
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.
17
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/>.
21
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.
25#
26# Field Description
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!)
31#
32# First the implementation without any locale-dependent data
33C	%g	1.23	1.23
34C	%g	-1.23	-1.23
35C	%g	0	0
36C	%%	0	%
37C	%'g	123.45	123.45
38C	%'g	-123.45	-123.45
39C	*%g*	1.23	*1.23*
40C	%9g	1.23	     1.23
41C	%9g	-1.23	    -1.23
42#
43# Locale-dependent test.
44#
45nn_NO.ISO-8859-1	%'g	123.45	123,45
46nn_NO.ISO-8859-1	%'g	-123.45	-123,45
47