diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-05-19 11:54:29 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-05-19 11:54:29 +0000 |
commit | f19ddeb2b18e1483ae3f9e5570e3ed9380d339be (patch) | |
tree | 54cd1730b0445bba4b8124d7f71d3d7be811c6ce | |
parent | 5bafcab43168f5bed581ada67f8b1d09482b379d (diff) | |
download | mpfr-f19ddeb2b18e1483ae3f9e5570e3ed9380d339be.tar.gz |
[tests/tsprintf.c] Do the locale_da_DK() test several times to yield
a failure by default once the bug triggered by mixed() is fixed.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11503 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/tsprintf.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/tsprintf.c b/tests/tsprintf.c index b227c0123..28239854a 100644 --- a/tests/tsprintf.c +++ b/tests/tsprintf.c @@ -876,6 +876,7 @@ locale_da_DK (void) { mpfr_prec_t p = 128; mpfr_t x; + int k; if (setlocale (LC_ALL, "da_DK") == 0 || localeconv()->decimal_point[0] != ',' || @@ -903,12 +904,12 @@ locale_da_DK (void) mpfr_exp10 (x, x, MPFR_RNDN); check_sprintf ("100000000000000000000000000000000000000000000000000", "%.0Rf", x); - check_sprintf - ("100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,", - "%'#.0Rf", x); - check_sprintf - ("100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000,0000", - "%'.4Rf", x); + for (k = 0; k < 40; k++) + { +#define S "100.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000," + check_sprintf (S, "%'#.0Rf", x); + check_sprintf (S "0000", "%'.4Rf", x); + } mpfr_clear (x); return 0; |