aboutsummaryrefslogtreecommitdiff
path: root/localedata/tst-fmon.data
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-10 05:13:54 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-10 05:13:54 +0000
commit8956ac9e979f950559b0b2d4f8a0726c70ceee8e (patch)
tree68d3b4a64c6d67a4dfcfcccdba995a20fa08d7f3 /localedata/tst-fmon.data
parentfe9d16a5440664700aed78cb6cf2837e01dedddb (diff)
downloadglibc-8956ac9e979f950559b0b2d4f8a0726c70ceee8e.zip
glibc-8956ac9e979f950559b0b2d4f8a0726c70ceee8e.tar.gz
glibc-8956ac9e979f950559b0b2d4f8a0726c70ceee8e.tar.bz2
Update.
2000-04-09 Ulrich Drepper <drepper@redhat.com> * localedata/Makefile: Add rules to clean up directories created by new strfmon tests. 2000-04-09 Geoff Clare <gwc@unisoft.com> * localedata/tst-fmon.data: Added new tests for strfmon() using test locales with all combinations of cs_precedes, sign_posn and sep_by_space. * localedata/tst-fmon.sh: Updated to support the new tests. * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing the localedef source for the new strfmon() test locale. * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise. * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise. * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise. * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise. * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise. * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise. * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise. * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise. * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise. * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise. * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise. * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise. * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise. * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise. * stdlib/strfmon.c: Correct problems with missing or extra spaces for unusual combinations of sign_posn and sep_by_space. Improved left-precision alignment code.
Diffstat (limited to 'localedata/tst-fmon.data')
-rw-r--r--localedata/tst-fmon.data111
1 files changed, 110 insertions, 1 deletions
diff --git a/localedata/tst-fmon.data b/localedata/tst-fmon.data
index f70dea0..f1084ca 100644
--- a/localedata/tst-fmon.data
+++ b/localedata/tst-fmon.data
@@ -19,7 +19,7 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# The format of this file is pretty simple: Each line contains a test
-# for strfmon. Fields are seperated by TABs. Lines that start with a
+# for strfmon. Fields are separated by TABs. Lines that start with a
# '#' are comments and are ignored.
#
# Field Description
@@ -126,3 +126,112 @@ en_US.ISO-8859-1 %!(#5n 3456.781 3,456.78
en_US.ISO-8859-1 %#5n 123.45 $ 123.45
en_US.ISO-8859-1 %#5n -123.45 -$ 123.45
en_US.ISO-8859-1 %#5n 3456.781 $ 3,456.78
+#
+# check all cs_precedes/sign_posn/sep_by_space combinations using
+# special test locales. The six characters after the "_" indicate
+# these three values for positive and then negative quantities.
+#
+tstfmon_n01y12 %n 123.45 123.45 $
+tstfmon_n01y12 %n -123.45 - $123.45
+tstfmon_n01y12 %11n 123.45 123.45 $
+tstfmon_n01y12 %11n -123.45 - $123.45
+tstfmon_n01y12 %^=*#5n 123.45 **123.45 $
+tstfmon_n01y12 %^=*#5n -123.45 - $**123.45
+#
+tstfmon_n02n40 %n 123.45 123.45$
+tstfmon_n02n40 %n -123.45 123.45$-
+tstfmon_n02n40 %11n 123.45 123.45$
+tstfmon_n02n40 %11n -123.45 123.45$-
+tstfmon_n02n40 %^=*#5n 123.45 **123.45$
+tstfmon_n02n40 %^=*#5n -123.45 **123.45$-
+#
+tstfmon_n10y31 %n 123.45 +123.45$
+tstfmon_n10y31 %n -123.45 -$ 123.45
+tstfmon_n10y31 %11n 123.45 +123.45$
+tstfmon_n10y31 %11n -123.45 -$ 123.45
+tstfmon_n10y31 %^=*#5n 123.45 +**123.45$
+tstfmon_n10y31 %^=*#5n -123.45 -$ **123.45
+#
+tstfmon_n11y41 %n 123.45 +123.45 $
+tstfmon_n11y41 %n -123.45 $- 123.45
+tstfmon_n11y41 %11n 123.45 +123.45 $
+tstfmon_n11y41 %11n -123.45 $- 123.45
+tstfmon_n11y41 %^=*#5n 123.45 +**123.45 $
+tstfmon_n11y41 %^=*#5n -123.45 $- **123.45
+#
+tstfmon_n12y11 %n 123.45 +123.45$
+tstfmon_n12y11 %n -123.45 -$ 123.45
+tstfmon_n12y11 %11n 123.45 +123.45$
+tstfmon_n12y11 %11n -123.45 -$ 123.45
+tstfmon_n12y11 %^=*#5n 123.45 +**123.45$
+tstfmon_n12y11 %^=*#5n -123.45 -$ **123.45
+#
+tstfmon_n20n32 %n 123.45 123.45$+
+tstfmon_n20n32 %n -123.45 123.45- $
+tstfmon_n20n32 %11n 123.45 123.45$+
+tstfmon_n20n32 %11n -123.45 123.45- $
+tstfmon_n20n32 %^=*#5n 123.45 **123.45$+
+tstfmon_n20n32 %^=*#5n -123.45 **123.45- $
+#
+tstfmon_n30y20 %n 123.45 123.45+$
+tstfmon_n30y20 %n -123.45 $123.45-
+tstfmon_n30y20 %11n 123.45 123.45+$
+tstfmon_n30y20 %11n -123.45 $123.45-
+tstfmon_n30y20 %^=*#5n 123.45 **123.45+$
+tstfmon_n30y20 %^=*#5n -123.45 $**123.45-
+#
+tstfmon_n41n00 %n 123.45 123.45 $+
+tstfmon_n41n00 %n -123.45 (123.45$)
+tstfmon_n41n00 %11n 123.45 123.45 $+
+tstfmon_n41n00 %11n -123.45 (123.45$)
+tstfmon_n41n00 %^=*#5n 123.45 **123.45 $+
+tstfmon_n41n00 %^=*#5n -123.45 (**123.45$)
+#
+tstfmon_y01y10 %n 123.45 $ 123.45
+tstfmon_y01y10 %n -123.45 -$123.45
+tstfmon_y01y10 %11n 123.45 $ 123.45
+tstfmon_y01y10 %11n -123.45 -$123.45
+tstfmon_y01y10 %^=*#5n 123.45 $ **123.45
+tstfmon_y01y10 %^=*#5n -123.45 -$**123.45
+#
+tstfmon_y02n22 %n 123.45 $123.45
+tstfmon_y02n22 %n -123.45 123.45$ O/D
+tstfmon_y02n22 %12n 123.45 $123.45
+tstfmon_y02n22 %12n -123.45 123.45$ O/D
+tstfmon_y02n22 %^=*#5n 123.45 $**123.45
+tstfmon_y02n22 %^=*#5n -123.45 **123.45$ O/D
+#
+tstfmon_y22n42 %n 123.45 $123.45+
+tstfmon_y22n42 %n -123.45 123.45$ -
+tstfmon_y22n42 %11n 123.45 $123.45+
+tstfmon_y22n42 %11n -123.45 123.45$ -
+tstfmon_y22n42 %^=*#5n 123.45 $**123.45+
+tstfmon_y22n42 %^=*#5n -123.45 **123.45$ -
+#
+tstfmon_y30y21 %n 123.45 +$123.45
+tstfmon_y30y21 %n -123.45 $ 123.45-
+tstfmon_y30y21 %11n 123.45 +$123.45
+tstfmon_y30y21 %11n -123.45 $ 123.45-
+tstfmon_y30y21 %^=*#5n 123.45 +$**123.45
+tstfmon_y30y21 %^=*#5n -123.45 $ **123.45-
+#
+tstfmon_y32n31 %n 123.45 + $123.45
+tstfmon_y32n31 %n -123.45 123.45 -$
+tstfmon_y32n31 %11n 123.45 + $123.45
+tstfmon_y32n31 %11n -123.45 123.45 -$
+tstfmon_y32n31 %^=*#5n 123.45 + $**123.45
+tstfmon_y32n31 %^=*#5n -123.45 **123.45 -$
+#
+tstfmon_y40y00 %n 123.45 $+123.45
+tstfmon_y40y00 %n -123.45 ($123.45)
+tstfmon_y40y00 %11n 123.45 $+123.45
+tstfmon_y40y00 %11n -123.45 ($123.45)
+tstfmon_y40y00 %^=*#5n 123.45 $+**123.45
+tstfmon_y40y00 %^=*#5n -123.45 ($**123.45)
+#
+tstfmon_y42n21 %n 123.45 $ +123.45
+tstfmon_y42n21 %n -123.45 123.45 $-
+tstfmon_y42n21 %11n 123.45 $ +123.45
+tstfmon_y42n21 %11n -123.45 123.45 $-
+tstfmon_y42n21 %^=*#5n 123.45 $ +**123.45
+tstfmon_y42n21 %^=*#5n -123.45 **123.45 $-