diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-04-07 13:59:37 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-04-07 13:59:37 +0000 |
commit | 01468b489e2ad35217f4a4eab6b9f160c5d8049c (patch) | |
tree | b90258a76462738d19df6f54665ec79192e5ad76 /tests/tset_d.c | |
parent | aab6696198475b5b6575a01aab71eec62c00cf4c (diff) | |
download | mpfr-01468b489e2ad35217f4a4eab6b9f160c5d8049c.tar.gz |
Replaced various instances of mpfr_print_binary + newline (sometimes
missing) by mpfr_dump.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10252 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_d.c')
-rw-r--r-- | tests/tset_d.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tset_d.c b/tests/tset_d.c index 0aacd6726..04e3e02d9 100644 --- a/tests/tset_d.c +++ b/tests/tset_d.c @@ -145,14 +145,14 @@ main (int argc, char *argv[]) if (mpfr_cmp_ui (x, 4)) { printf ("Error in tset_d: expected 4.0, got "); - mpfr_print_binary (x); putchar('\n'); + mpfr_dump (x); exit (1); } mpfr_set_d (x, -5.0, MPFR_RNDN); if (mpfr_cmp_si (x, -4)) { printf ("Error in tset_d: expected -4.0, got "); - mpfr_print_binary (x); putchar('\n'); + mpfr_dump (x); exit (1); } @@ -160,7 +160,7 @@ main (int argc, char *argv[]) if (mpfr_cmp_ui (x, 1)) { printf ("Error in tset_d: expected 1.0, got "); - mpfr_print_binary (x); putchar('\n'); + mpfr_dump (x); exit (1); } @@ -168,7 +168,7 @@ main (int argc, char *argv[]) mpfr_set_d (z, 1.0, (mpfr_rnd_t) 0); if (mpfr_cmp_ui (z, 1)) { - mpfr_print_binary (z); puts (""); + mpfr_dump (z); printf ("Error: 1.0 != 1.0\n"); exit (1); } @@ -177,7 +177,7 @@ main (int argc, char *argv[]) mpfr_set_d (x, d=-1.08007920352320089721e+150, (mpfr_rnd_t) 0); if (mpfr_get_d1 (x) != d) { - 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); |