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/tui_pow.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/tui_pow.c') diff --git a/tests/tui_pow.c b/tests/tui_pow.c index 8cc965c85..33c209e69 100644 --- a/tests/tui_pow.c +++ b/tests/tui_pow.c @@ -110,14 +110,11 @@ check1 (mpfr_ptr x, mpfr_prec_t prec, unsigned long nt, mpfr_rnd_t rnd) printf (" prec=%u rnd_mode=%s\n", (unsigned) prec, mpfr_print_rnd_mode (rnd)); printf ("got "); - mpfr_out_str (stdout, 2, prec, z, MPFR_RNDN); - puts (""); + mpfr_dump (z); printf ("expected "); - mpfr_out_str (stdout, 2, prec, t, MPFR_RNDN); - puts (""); - printf ("approx "); - mpfr_print_binary (y); - puts (""); + mpfr_dump (t); + printf ("approx "); + mpfr_dump (y); exit (1); } compare2 = mpfr_cmp (t, y); -- cgit v1.2.1