diff options
Diffstat (limited to 'tests/tsqrt.c')
-rw-r--r-- | tests/tsqrt.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/tsqrt.c b/tests/tsqrt.c index 2da6842..17d05c3 100644 --- a/tests/tsqrt.c +++ b/tests/tsqrt.c @@ -1,6 +1,6 @@ /* tsqrt -- test file for mpc_sqrt. -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_sqrt (P[1].mpc, P[2].mpc, P[3].mpc_rnd) +#define MPC_FUNCTION_CALL_REUSE_OP1 \ + P[0].mpc_inex = mpc_sqrt (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_sqrt); - test_start (); - data_check (f, "sqrt.dat"); - tgeneric (f, 2, 1024, 7, 256); + data_check_template ("sqrt.dsc", "sqrt.dat"); + + tgeneric_template ("sqrt.dsc", 2, 1024, 7, 256); test_end (); |