summaryrefslogtreecommitdiff
path: root/tests/tui_pow.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-09-14 15:28:21 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-09-14 15:28:21 +0000
commit637828131d10c07859b8715e6acd7ec5aa939e56 (patch)
tree467151881401bdbde18b2254040f489a8d7b86ad /tests/tui_pow.c
parent57572d9ed5f15ea3355e721b6b60535ad19ddb8a (diff)
downloadmpfr-637828131d10c07859b8715e6acd7ec5aa939e56.tar.gz
[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
Diffstat (limited to 'tests/tui_pow.c')
-rw-r--r--tests/tui_pow.c11
1 files changed, 4 insertions, 7 deletions
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);