summaryrefslogtreecommitdiff
path: root/tests/tdiv.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2007-06-04 11:04:30 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2007-06-04 11:04:30 +0000
commit6b314627167a059ee7765ac869ff35c73248eeef (patch)
tree238d499a6f09acc25f038aae30a319c1e8233bf4 /tests/tdiv.c
parent847ccbe9e7545bbcea7a0c835fe9ce29d450ecc6 (diff)
downloadmpfr-6b314627167a059ee7765ac869ff35c73248eeef.tar.gz
tdiv.c: added missing mpfr_clear's, and spaces before function calls
div.c: fixed bug found by Carl Witty, and added more comments git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4530 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tdiv.c')
-rw-r--r--tests/tdiv.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/tdiv.c b/tests/tdiv.c
index f5a97c474..ef58dae2b 100644
--- a/tests/tdiv.c
+++ b/tests/tdiv.c
@@ -802,6 +802,11 @@ test_20070603 (void)
mpfr_dump (c);
exit (1);
}
+
+ mpfr_clear (n);
+ mpfr_clear (d);
+ mpfr_clear (q);
+ mpfr_clear (c);
}
#define TEST_FUNCTION test_div
@@ -818,11 +823,11 @@ main (int argc, char *argv[])
check_inexact ();
check_hard ();
check_nan ();
- check_lowr();
- check_float(); /* checks single precision */
- check_double();
- check_convergence();
- check_64();
+ check_lowr ();
+ check_float (); /* checks single precision */
+ check_double ();
+ check_convergence ();
+ check_64 ();
check4("4.0","4.503599627370496e15", GMP_RNDZ, 62,
"0.10000000000000000000000000000000000000000000000000000000000000E-49");