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/tset_d.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/tset_d.c')
-rw-r--r-- | tests/tset_d.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/tset_d.c b/tests/tset_d.c index 3da550788..7e9f6199d 100644 --- a/tests/tset_d.c +++ b/tests/tset_d.c @@ -133,8 +133,7 @@ main (int argc, char *argv[]) printf ("got "); mpfr_out_str (stdout, 10, 10, x, MPFR_RNDN); printf ("\n"); - mpfr_print_binary (x); - puts (""); + mpfr_dump (x); exit (1); } } @@ -188,8 +187,7 @@ main (int argc, char *argv[]) mpfr_set_d (x, d, (mpfr_rnd_t) 0); if (d != mpfr_get_d1 (x)) { - mpfr_print_binary (x); - puts (""); + mpfr_dump (x); printf ("Error: get_d o set_d <> identity for d = %1.20e %1.20e\n", d, mpfr_get_d1 (x)); exit (1); @@ -212,8 +210,7 @@ main (int argc, char *argv[]) if (d != dd && !(Isnan(d) && Isnan(dd))) { printf ("Mismatch on : %1.18g != %1.18g\n", d, mpfr_get_d1 (x)); - mpfr_print_binary (x); - puts (""); + mpfr_dump (x); exit (1); } } |