diff options
Diffstat (limited to 'tests/tconj.c')
-rw-r--r-- | tests/tconj.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/tconj.c b/tests/tconj.c index 949a80b..c179135 100644 --- a/tests/tconj.c +++ b/tests/tconj.c @@ -1,6 +1,6 @@ /* tconj -- test file for mpc_conj. -Copyright (C) 2008 INRIA +Copyright (C) 2008, 2013 INRIA This file is part of GNU MPC. @@ -20,15 +20,22 @@ along with this program. If not, see http://www.gnu.org/licenses/ . #include "mpc-tests.h" +#define MPC_FUNCTION_CALL \ + P[0].mpc_inex = mpc_conj (P[1].mpc, P[2].mpc, P[3].mpc_rnd) +#define MPC_FUNCTION_CALL_REUSE_OP1 \ + P[0].mpc_inex = mpc_conj (P[1].mpc, P[1].mpc, P[3].mpc_rnd) + +#include "data_check.tpl" +#include "tgeneric.tpl" + int main (void) { - DECL_FUNC (CC, f, mpc_conj); - test_start (); - data_check (f, "conj.dat"); - tgeneric (f, 2, 1024, 1, 0); + data_check_template ("conj.dsc", "conj.dat"); + + tgeneric_template ("conj.dsc", 2, 1024, 1, 0); test_end (); |