summaryrefslogtreecommitdiff
path: root/tests/tsub1sp.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/tsub1sp.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/tsub1sp.c')
-rw-r--r--tests/tsub1sp.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/tests/tsub1sp.c b/tests/tsub1sp.c
index cd904ea26..460a5dd6f 100644
--- a/tests/tsub1sp.c
+++ b/tests/tsub1sp.c
@@ -45,11 +45,10 @@ main (void)
{ \
printf("ERROR: for %s and p=%lu and i=%d:\nY=", \
mpfr_print_rnd_mode ((mpfr_rnd_t) r), (unsigned long) p, i); \
- mpfr_print_binary(y); \
- printf("\nZ="); mpfr_print_binary(z); \
- printf("\nReal: "); mpfr_print_binary(x2); \
- printf("\nGot : "); mpfr_print_binary(x); \
- putchar('\n'); \
+ mpfr_dump (y); \
+ printf ("Z="); mpfr_dump (z); \
+ printf ("Real: "); mpfr_dump (x2); \
+ printf ("Got : "); mpfr_dump (x); \
exit(1); \
} \
while (0)
@@ -59,11 +58,11 @@ main (void)
{ \
printf("ERROR: for %s and p=%lu and i=%d:\nY=", \
mpfr_print_rnd_mode ((mpfr_rnd_t) r), (unsigned long) p, i); \
- mpfr_print_binary(y); \
- printf("\nZ="); mpfr_print_binary(z); \
- printf("\nR="); mpfr_print_binary(x); \
- printf("\nWrong inexact flag. Real: %d. Got: %d\n", \
- inexact1, inexact2); \
+ mpfr_dump (y); \
+ printf ("Z="); mpfr_dump (z); \
+ printf ("R="); mpfr_dump (x); \
+ printf ("Wrong inexact flag. Real: %d. Got: %d\n", \
+ inexact1, inexact2); \
exit(1); \
} \
while (0)
@@ -123,7 +122,7 @@ check_special (void)
{
printf("Error for x-x with p=%lu. Expected 0. Got:",
(unsigned long) p);
- mpfr_print_binary(x);
+ mpfr_dump (x);
exit(1);
}
@@ -133,7 +132,7 @@ check_special (void)
{
printf("Error for x-y with y=x and p=%lu. Expected 0. Got:",
(unsigned long) p);
- mpfr_print_binary(x);
+ mpfr_dump (x);
exit(1);
}
/* diff = 0 */