summaryrefslogtreecommitdiff
path: root/tests/tpow_fr.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-09-01 18:23:05 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-09-01 18:23:05 +0000
commit4cbb8daab4917d6edc7da0ed175e1bd29f351ca5 (patch)
tree6ebccd332c11272b2e3079f6be86b9dfd14bd669 /tests/tpow_fr.c
parent38addd81ef37c3308d8d203237cdc39d732791a2 (diff)
downloadmpc-4cbb8daab4917d6edc7da0ed175e1bd29f351ca5.tar.gz
tpow_fr.c, pow_fr.dat: moved test to data file
tadd_fr.c: changed nonsensical expmax==-1 to 10 git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1063 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tpow_fr.c')
-rw-r--r--tests/tpow_fr.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/tests/tpow_fr.c b/tests/tpow_fr.c
index 43849ba..bccc093 100644
--- a/tests/tpow_fr.c
+++ b/tests/tpow_fr.c
@@ -23,23 +23,11 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
int
main (void)
{
- mpc_t z;
- mpfr_t f;
-
+ DECL_FUNC (CCF, f, mpc_pow_fr);
test_start ();
- mpc_init2 (z, 5);
- mpfr_init2 (f, 3);
- mpc_set_ui_ui (z, 3, 2, MPC_RNDNN);
- mpfr_set_ui (f, 3, GMP_RNDN);
- mpc_pow_fr (z, z, f, MPC_RNDNN);
- if (mpc_cmp_si_si (z, -9, 46) != 0)
- {
- printf ("Error for mpc_pow_fr (1)\n");
- exit (1);
- }
- mpc_clear (z);
- mpfr_clear (f);
+ data_check (f, "pow_fr.dat");
+ tgeneric (f, 2, 1024, 7, 10);
test_end ();