diff options
author | Philippe Theveny <philippe.theveny@laposte.net> | 2014-01-20 18:19:00 +0000 |
---|---|---|
committer | Philippe Theveny <philippe.theveny@laposte.net> | 2014-01-20 18:19:00 +0000 |
commit | 098a9b3905fcb9db710e3890f1553716f78bf794 (patch) | |
tree | f680c4ae852201766e91e0e07ba46dc6e34f5cf1 /tests/tpow_si.c | |
parent | a78b9b4bc767c1d10c5101929c91cadcfd904283 (diff) | |
download | mpc-git-098a9b3905fcb9db710e3890f1553716f78bf794.tar.gz |
New test framework, merged from test branch.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1416 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tpow_si.c')
-rw-r--r-- | tests/tpow_si.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/tpow_si.c b/tests/tpow_si.c index a3cbfb7..75f01ef 100644 --- a/tests/tpow_si.c +++ b/tests/tpow_si.c @@ -1,6 +1,6 @@ /* tpow_si -- test file for mpc_pow_si. -Copyright (C) 2009, 2010, 2011 INRIA +Copyright (C) 2009, 2010, 2011, 2012 INRIA This file is part of GNU MPC. @@ -74,12 +74,19 @@ compare_mpc_pow (mpfr_prec_t pmax, int iter, unsigned long nbits) mpc_clear (y); } +#define MPC_FUNCTION_CALL \ + P[0].mpc_inex = mpc_pow_si (P[1].mpc, P[2].mpc, P[3].si, P[4].mpc_rnd) +#define MPC_FUNCTION_CALL_REUSE_OP1 \ + P[0].mpc_inex = mpc_pow_si (P[1].mpc, P[1].mpc, P[3].si, P[4].mpc_rnd) + +#include "data_check.tpl" + int main (void) { - DECL_FUNC (CCS, f, mpc_pow_si); test_start (); - data_check (f, "pow_si.dat"); + + data_check_template ("pow_si.dsc", "pow_si.dat"); compare_mpc_pow (100, 5, 19); |