summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-06-07 07:26:52 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-06-07 07:26:52 +0000
commite31290a255dd7c7e4ef5dac84d6a38e215df66f3 (patch)
treeb176fa5da9f211743fdd0bc2d028a4b256e1a9c0 /tests
parent45abf6eaaf2b4986c138cc1a961466ee5d239ba2 (diff)
downloadmpfr-e31290a255dd7c7e4ef5dac84d6a38e215df66f3.tar.gz
[tests/tprintf.c] Removed tests of native %'g and %'f (from r8292)
as the ' flag is an extension from Single UNIX Specification and in particular, they fail with MinGW under Wine. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10449 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/tprintf.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c
index aa5a540c6..fbc32734f 100644
--- a/tests/tprintf.c
+++ b/tests/tprintf.c
@@ -428,7 +428,6 @@ test_locale (void)
int i;
char *s = NULL;
mpfr_t x;
- double y;
int count;
for(i = 0; i < numberof(tab_locale) && s == NULL; i++)
@@ -439,12 +438,11 @@ test_locale (void)
mpfr_init2 (x, 113);
mpfr_set_ui (x, 10000, MPFR_RNDN);
- y = 100000;
- count = mpfr_printf ("(1) 10000=%'Rg 100000=%'g \n", x, y);
- check_length (10000, count, 33, d);
- count = mpfr_printf ("(2) 10000=%'Rf 100000=%'f \n", x, y);
- check_length (10001, count, 47, d);
+ count = mpfr_printf ("(1) 10000=%'Rg \n", x);
+ check_length (10000, count, 18, d);
+ count = mpfr_printf ("(2) 10000=%'Rf \n", x);
+ check_length (10001, count, 25, d);
mpfr_clear (x);
}