diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2009-12-31 18:06:21 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2009-12-31 18:06:21 +0100 |
commit | cfcb9fef89a6e4187c70f2289d387820ea562c30 (patch) | |
tree | 1a1343b6065409a2fd88415f7d510ff6646e598f /tests/mpz/t-root.c | |
parent | 129af0f8ac2f10d70396ee61de731f38c893205e (diff) | |
download | gmp-cfcb9fef89a6e4187c70f2289d387820ea562c30.tar.gz |
Change some tests to try larger arguments.
Diffstat (limited to 'tests/mpz/t-root.c')
-rw-r--r-- | tests/mpz/t-root.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/mpz/t-root.c b/tests/mpz/t-root.c index c03e99ad2..c1a2b6433 100644 --- a/tests/mpz/t-root.c +++ b/tests/mpz/t-root.c @@ -98,20 +98,19 @@ main (int argc, char **argv) mpz_t root1; mp_size_t x2_size; int i; - int reps = 20000; + int reps = 500; unsigned long nth; gmp_randstate_ptr rands; mpz_t bs; unsigned long bsi, size_range; tests_start (); + TESTS_REPS (reps, argv, argc); + rands = RANDS; mpz_init (bs); - if (argc == 2) - reps = atoi (argv[1]); - mpz_init (x2); mpz_init (root1); @@ -123,7 +122,7 @@ main (int argc, char **argv) for (i = 0; i < reps; i++) { mpz_urandomb (bs, rands, 32); - size_range = mpz_get_ui (bs) % 12 + 2; + size_range = mpz_get_ui (bs) % 17 + 2; mpz_urandomb (bs, rands, size_range); x2_size = mpz_get_ui (bs) + 10; |