summaryrefslogtreecommitdiff
path: root/tests/tprintf.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-07-04 13:36:32 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-07-04 13:36:32 +0000
commit6428c44715245e3114cd1eb3af6d2450f1e3acae (patch)
treea06be55f0e97566476c3fe3a3d545fb30306ba99 /tests/tprintf.c
parent154d55bba27835de7a914ba2422bfcd28443ae84 (diff)
downloadmpfr-6428c44715245e3114cd1eb3af6d2450f1e3acae.tar.gz
[tests/tprintf.c] Minor correction.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12880 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r--tests/tprintf.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c
index f6047685f..babacdd70 100644
--- a/tests/tprintf.c
+++ b/tests/tprintf.c
@@ -520,20 +520,21 @@ test_locale (void)
check_length (10000, count, 18, d);
count = mpfr_printf ("(2) 10000=%'Rf \n", x);
check_length (10001, count, 25, d);
+
mpfr_set_ui (x, 1000, MPFR_RNDN);
count = mpfr_printf ("(3) 1000=%'Rf \n", x);
check_length (10002, count, 23, d);
mpfr_set_str (x, "9.5", 10, MPFR_RNDN);
- count = mpfr_printf ("(4) 1e17=%'.0Rf \n", x);
- check_length (10003, count, 13, d);
+ count = mpfr_printf ("(4) 10=%'.0Rf \n", x);
+ check_length (10003, count, 11, d);
mpfr_set_str (x, "99.5", 10, MPFR_RNDN);
- count = mpfr_printf ("(5) 1e17=%'.0Rf \n", x);
- check_length (10004, count, 14, d);
+ count = mpfr_printf ("(5) 100=%'.0Rf \n", x);
+ check_length (10004, count, 13, d);
mpfr_set_str (x, "999.5", 10, MPFR_RNDN);
- count = mpfr_printf ("(6) 1e17=%'.0Rf \n", x);
+ count = mpfr_printf ("(6) 1000=%'.0Rf \n", x);
check_length (10005, count, 16, d);
mpfr_clear (x);