summaryrefslogtreecommitdiff
path: root/tests/tconst_log2.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2012-03-08 08:17:48 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2012-03-08 08:17:48 +0000
commiteb5ac8dd30d1777bd1a9fd6fd55890f7f3684fa6 (patch)
tree582cc53c6e7bc399348976d8b19c176a4af4448a /tests/tconst_log2.c
parent6260ee4d3d23990d612c0acff54b5f31ebc1813d (diff)
downloadmpfr-eb5ac8dd30d1777bd1a9fd6fd55890f7f3684fa6.tar.gz
[tconst_log2.c] use hexadecimal output in case of error in check_large()
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8075 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_log2.c')
-rw-r--r--tests/tconst_log2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tconst_log2.c b/tests/tconst_log2.c
index 2ddec133a..0394d0005 100644
--- a/tests/tconst_log2.c
+++ b/tests/tconst_log2.c
@@ -75,12 +75,12 @@ check_large (void)
(mpfr_const_log2) (y, MPFR_RNDN); /* Then the other - cache - */
mpfr_set (z, y, MPFR_RNDN);
mpfr_prec_round (y, 25000, MPFR_RNDN);
- if (mpfr_cmp (x, y))
+ if (mpfr_cmp (x, y) != 0)
{
printf ("const_log2: error for large prec\n");
- printf ("x="); mpfr_dump (x);
- printf ("y="); mpfr_dump (y);
- printf ("z="); mpfr_dump (z);
+ mpfr_printf ("x=%Ra\n", x);
+ mpfr_printf ("y=%Ra\n", y);
+ mpfr_printf ("z=%Ra\n", z);
exit (1);
}