summaryrefslogtreecommitdiff
path: root/tests/terf.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2007-07-20 16:11:15 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2007-07-20 16:11:15 +0000
commitbd51be6f206ac602e8e2682b72b05a02416f2eb0 (patch)
treeac6ccf8a4cb0217e5ee20fe07aea381da020fdf2 /tests/terf.c
parent4e7a9de434990ad6cb497ab843787fcbea382f46 (diff)
downloadmpfr-bd51be6f206ac602e8e2682b72b05a02416f2eb0.tar.gz
Added code to check mpfr against Gonnet's tables when the environment variable
MPFR_CHECK_ALL is defined (some table entries were checked by MuPAD) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4688 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/terf.c')
-rw-r--r--tests/terf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/terf.c b/tests/terf.c
index 98b742036..847f0c00c 100644
--- a/tests/terf.c
+++ b/tests/terf.c
@@ -551,6 +551,12 @@ main (int argc, char *argv[])
test_generic_erf (2, 100, 15);
test_generic_erfc (2, 100, 15);
+ if (getenv ("MPFR_CHECK_ALL") != NULL)
+ {
+ data_check ("data/erf", mpfr_erf, "mpfr_erf");
+ data_check ("data/erfc", mpfr_erfc, "mpfr_erfc");
+ }
+
tests_end_mpfr ();
return 0;
}