From 7653db3b9128c7bd5b50f42c8b7fbdf6a27acdb1 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Sat, 8 Feb 2020 02:26:20 +0000 Subject: [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 --- tests/tsprintf.c | 12 ++++++------ 1 file 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 -- cgit v1.2.1