summaryrefslogtreecommitdiff
path: root/tests/tzeta.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-04-07 13:59:37 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-04-07 13:59:37 +0000
commit01468b489e2ad35217f4a4eab6b9f160c5d8049c (patch)
treeb90258a76462738d19df6f54665ec79192e5ad76 /tests/tzeta.c
parentaab6696198475b5b6575a01aab71eec62c00cf4c (diff)
downloadmpfr-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/tzeta.c')
-rw-r--r--tests/tzeta.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/tzeta.c b/tests/tzeta.c
index 7316223e0..4362127e1 100644
--- a/tests/tzeta.c
+++ b/tests/tzeta.c
@@ -42,12 +42,12 @@ test1 (void)
if (mpfr_cmp (x, y))
{
printf ("Error for input on 40 bits, output on 50 bits\n");
- printf ("Expected "); mpfr_print_binary (x); puts ("");
- printf ("Got "); mpfr_print_binary (y); puts ("");
+ printf ("Expected "); mpfr_dump (x);
+ printf ("Got "); mpfr_dump (y);
mpfr_set_str_binary (x, "1.001101001101000010011010110100110000101e-1");
mpfr_zeta (y, x, MPFR_RNDU);
- mpfr_print_binary (x); puts ("");
- mpfr_print_binary (y); puts ("");
+ mpfr_dump (x);
+ mpfr_dump (y);
exit (1);
}
@@ -60,8 +60,8 @@ test1 (void)
if (mpfr_cmp (x, y))
{
printf ("Error in mpfr_zeta (1)\n");
- printf ("Expected "); mpfr_print_binary (x); puts ("");
- printf ("Got "); mpfr_print_binary (y); puts ("");
+ printf ("Expected "); mpfr_dump (x);
+ printf ("Got "); mpfr_dump (y);
exit (1);
}
@@ -170,14 +170,14 @@ test2 (void)
printf("Wrong result for zeta(%s=", val[i]);
mpfr_print_binary (x);
printf (").\nGot : ");
- mpfr_print_binary(y); putchar('\n');
+ mpfr_dump (y);
printf("Expected: ");
mpfr_set_str (y, val[i+1], 2, MPFR_RNDZ);
- mpfr_print_binary(y); putchar('\n');
+ mpfr_dump (y);
mpfr_set_prec(y, 65);
mpfr_zeta(y, x, MPFR_RNDZ);
printf("+ Prec : ");
- mpfr_print_binary(y); putchar('\n');
+ mpfr_dump (y);
exit(1);
}
}