summaryrefslogtreecommitdiff
path: root/tests/tdiv_ui.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-04-07 11:34:05 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-04-07 11:34:05 +0000
commit66bef47fa7c39331a73e6cd111a3b7a9cabb3ac9 (patch)
tree1feffdf9ec619778bbc37512d32dca1b998010ef /tests/tdiv_ui.c
parent674ba0a09c4fa5b29cc04c1a21b251554208fb4c (diff)
downloadmpfr-66bef47fa7c39331a73e6cd111a3b7a9cabb3ac9.tar.gz
Improve test suite by adding new random values.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3434 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tdiv_ui.c')
-rw-r--r--tests/tdiv_ui.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tdiv_ui.c b/tests/tdiv_ui.c
index 68a3ae916..692adadf8 100644
--- a/tests/tdiv_ui.c
+++ b/tests/tdiv_ui.c
@@ -189,11 +189,17 @@ check_inexact (void)
mpfr_clear (z);
}
+#define TEST_FUNCTION mpfr_div_ui
+#define INTEGER_TYPE unsigned long
+#define RAND_FUNCTION(x) mpfr_random2(x, MPFR_LIMB_SIZE (x), 1)
+#include "tgeneric_ui.c"
+
int
main (int argc, char **argv)
{
mpfr_t x;
+ MPFR_TEST_USE_RANDS ();
tests_start_mpfr ();
special ();
@@ -219,6 +225,8 @@ main (int argc, char **argv)
}
mpfr_clear(x);
+ test_generic_ui (2, 200, 100);
+
tests_end_mpfr ();
return 0;
}