summaryrefslogtreecommitdiff
path: root/tests/thypot.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-08-20 21:10:29 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-08-20 21:10:29 +0000
commita858af7f154ccd52db491f25960a902df14c9f45 (patch)
treeb75f30d8afc1d5db364349c8154a50efcb00a3ef /tests/thypot.c
parent8eb2ca5b635b72f2084ef4fd8dc97c5c6c20b708 (diff)
downloadmpfr-a858af7f154ccd52db491f25960a902df14c9f45.tar.gz
tests/thypot.c: improved error messages.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5564 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/thypot.c')
-rw-r--r--tests/thypot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/thypot.c b/tests/thypot.c
index 5a8a95d8b..b96491d38 100644
--- a/tests/thypot.c
+++ b/tests/thypot.c
@@ -147,7 +147,8 @@ test_large_small (void)
inexact = mpfr_hypot (z, x, y, GMP_RNDN);
if (inexact >= 0 || mpfr_cmp (x, z))
{
- printf ("Error 1 in test_large_small\n");
+ printf ("Error 1 in test_large_small%s\n",
+ ext ? ", extended exponent range" : "");
exit (1);
}
@@ -155,7 +156,8 @@ test_large_small (void)
inexact = mpfr_hypot (z, x, y, GMP_RNDN);
if (mpfr_cmp (x, z) >= 0)
{
- printf ("Error 2 in test_large_small\n");
+ printf ("Error 2 in test_large_small%s\n",
+ ext ? ", extended exponent range" : "");
printf ("x = ");
mpfr_out_str (stdout, 2, 0, x, GMP_RNDN);
printf ("\n");