
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 34: C %g 1.23 1.23 35: C %g -1.23 -1.23 36: C %g 0 0 37: C %% 0 % 38: C %'g 123.45 123.45 39: C %'g -123.45 -123.45 40: C *%g* 1.23 *1.23* 41: C %9g 1.23 1.23 42: C %9g -1.23 -1.23 43: # 44: # Locale-dependent test. 45: # 46: nn_NO.ISO-8859-1 %'g 123.45 123,45 47: nn_NO.ISO-8859-1 %'g -123.45 -123,45