From 637828131d10c07859b8715e6acd7ec5aa939e56 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 14 Sep 2017 15:28:21 +0000 Subject: [tests] Got rid of the use of mpfr_print_binary, in general with mpfr_dump. Replaced some "mpfr_out_str (stdout, 2, ...)" by mpfr_dump for consistency or as improvements. Some other corrections in the related error messages. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11750 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tsec.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'tests/tsec.c') diff --git a/tests/tsec.c b/tests/tsec.c index e03468603..1f5012bb3 100644 --- a/tests/tsec.c +++ b/tests/tsec.c @@ -120,9 +120,10 @@ overflowed_sec0 (void) if (! mpfr_equal_p (x, y)) { printf ("Error in overflowed_sec0 (i = %d, rnd = %s):\n" - " Got ", i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd)); - mpfr_print_binary (x); - printf (" instead of 0.11111111E%d.\n", emax); + " Got ", i, + mpfr_print_rnd_mode ((mpfr_rnd_t) rnd)); + mpfr_dump (x); + printf (" instead of 0.11111111E%d.\n", emax); err = 1; } } @@ -138,9 +139,10 @@ overflowed_sec0 (void) if (! (mpfr_inf_p (x) && MPFR_IS_POS (x))) { printf ("Error in overflowed_sec0 (i = %d, rnd = %s):\n" - " Got ", i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd)); - mpfr_print_binary (x); - printf (" instead of +Inf.\n"); + " Got ", i, + mpfr_print_rnd_mode ((mpfr_rnd_t) rnd)); + mpfr_dump (x); + printf (" instead of +Inf.\n"); err = 1; } } -- cgit v1.2.1