diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-09-14 15:28:21 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-09-14 15:28:21 +0000 |
commit | 637828131d10c07859b8715e6acd7ec5aa939e56 (patch) | |
tree | 467151881401bdbde18b2254040f489a8d7b86ad /tests/tsec.c | |
parent | 57572d9ed5f15ea3355e721b6b60535ad19ddb8a (diff) | |
download | mpfr-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/tsec.c')
-rw-r--r-- | tests/tsec.c | 14 |
1 files changed, 8 insertions, 6 deletions
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; } } |