source: branches/libc-0.6/src/libctests/glibc/localedata/tst-numeric.data

Last change on this file was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1# Test data for tst-nomeric, which checks it's implementation in glibc
2# Copyright (C) 2003 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, write to the Free
20# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21# 02111-1307 USA.
22
23# The format of this file is pretty simple: Each line contains a test
24# for strfmon. Fields are separated by TABs. Lines that start with a
25# '#' are comments and are ignored.
26#
27# Field Description
28# #1 locale which is to be checked
29# #2 format string which is fed into snprintf
30# #3 double value that is used for formatting
31# #4 the expected result (may contain trailing spaces!)
32#
33# First the implementation without any locale-dependent data
34C %g 1.23 1.23
35C %g -1.23 -1.23
36C %g 0 0
37C %% 0 %
38C %'g 123.45 123.45
39C %'g -123.45 -123.45
40C *%g* 1.23 *1.23*
41C %9g 1.23 1.23
42C %9g -1.23 -1.23
43#
44# Locale-dependent test.
45#
46nn_NO.ISO-8859-1 %'g 123.45 123,45
47nn_NO.ISO-8859-1 %'g -123.45 -123,45
Note: See TracBrowser for help on using the repository browser.