summaryrefslogtreecommitdiff
path: root/tests/tget_flt.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2010-07-15 12:49:09 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2010-07-15 12:49:09 +0000
commit640ded70d8e636b62521ab8fe70edc1a3aa6d7ae (patch)
treeba7faa3ee528b838f032716079efe3143d61c3e5 /tests/tget_flt.c
parentf408388426f9bcb426d92d3ef3ea7643f9f92172 (diff)
downloadmpfr-640ded70d8e636b62521ab8fe70edc1a3aa6d7ae.tar.gz
[tget_flt.c] print more information in case a test fails
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7003 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tget_flt.c')
-rw-r--r--tests/tget_flt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tget_flt.c b/tests/tget_flt.c
index 3f01184ca..2ba0f5cbd 100644
--- a/tests/tget_flt.c
+++ b/tests/tget_flt.c
@@ -57,7 +57,9 @@ main (void)
mpfr_set_flt (x, f, MPFR_RNDN);
if (mpfr_inf_p (x) == 0 || mpfr_sgn (x) < 0)
{
- printf ("Error for mpfr_set_flt(mpfr_get_flt(+Inf))n");
+ printf ("Error for mpfr_set_flt(mpfr_get_flt(+Inf)):\n");
+ printf ("expected -Inf\n");
+ printf ("got "); mpfr_dump (x);
exit (1);
}