summaryrefslogtreecommitdiff
path: root/tests/tprintf.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2009-05-29 07:37:23 +0000
committerthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2009-05-29 07:37:23 +0000
commit12aa23e52a5ee40a786934d16c1aa2e3d5b9bead (patch)
tree1c7fc19c2df3c48779f2648c7657b4919cda0758 /tests/tprintf.c
parent5c112b0fb55facecfb23f9f941419cc7cb80a602 (diff)
downloadmpfr-12aa23e52a5ee40a786934d16c1aa2e3d5b9bead.tar.gz
vasprintf.c: Fix bug, "%%" was not correctly displayed when used alone or before a mpfr_t output.
tests/tfprintf.c tests/tprintf.c: Fix expected values for tests with "%%". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6258 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r--tests/tprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c
index 0af5297d8..8fe566ad3 100644
--- a/tests/tprintf.c
+++ b/tests/tprintf.c
@@ -276,11 +276,11 @@ check_mixed (void)
check_length_with_cmp (6, mpz, 24, mpz_cmp_ui (mpz, 24), Zi);
check_vprintf ("%% a. %#.0RNg, b. %Qx%Rn c. %p",
mpfr, mpq, &mpfr, (void *) &i);
- check_length_with_cmp (7, mpfr, 16, mpfr_cmp_ui (mpfr, 16), Rg);
+ check_length_with_cmp (7, mpfr, 15, mpfr_cmp_ui (mpfr, 15), Rg);
#ifndef NPRINTF_T
check_vprintf ("%% a. %RNg, b. %Qx, c. %td%tn", mpfr, mpq, p, &p);
- check_length (8, p, 21, td);
+ check_length (8, p, 20, td);
#endif
#ifndef NPRINTF_L