summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-02-08 02:26:20 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-02-08 02:26:20 +0000
commit7653db3b9128c7bd5b50f42c8b7fbdf6a27acdb1 (patch)
tree6e8ab885fc6f46d4ba50fcd936798c628ac6e6a4
parent9078c2cccaa7caf3648baddd6b5ce373f6ca378c (diff)
downloadmpfr-7653db3b9128c7bd5b50f42c8b7fbdf6a27acdb1.tar.gz
[tests/tsprintf.c] Fixed some tests: the 'P' specifier was missing.
(merged changeset r13690 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13691 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tsprintf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tsprintf.c b/tests/tsprintf.c
index eb9f3bd65..2cda2cf73 100644
--- a/tests/tsprintf.c
+++ b/tests/tsprintf.c
@@ -238,12 +238,12 @@ decimal (void)
check_vsprintf ("000128:", "%-2.6Pd:", p);
check_vsprintf (" 000128:", "%8.6Pd:", p);
check_vsprintf ("000128 :", "%-8.6Pd:", p);
- check_vsprintf ("+128:", "%+d:", p);
- check_vsprintf (" 128:", "% d:", p);
- check_vsprintf ("80:", "% x:", p);
- check_vsprintf ("0x80:", "% #x:", p);
- check_vsprintf ("0x80:", "%0#+ -x:", p);
- check_vsprintf ("0200:", "%0#+ -o:", p);
+ check_vsprintf ("+128:", "%+Pd:", p);
+ check_vsprintf (" 128:", "% Pd:", p);
+ check_vsprintf ("80:", "% Px:", p);
+ check_vsprintf ("0x80:", "% #Px:", p);
+ check_vsprintf ("0x80:", "%0#+ -Px:", p);
+ check_vsprintf ("0200:", "%0#+ -Po:", p);
check_vsprintf ("+0000128 :", "%0+ *.*Pd:", -9, 7, p);
check_vsprintf ("+12345 :", "%0+ -*.*Pd:", -9, -3, (mpfr_prec_t) 12345);
/* Do not add a test like "%05.1Pd" as MS Windows is buggy: when