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