summaryrefslogtreecommitdiff
path: root/tests/tacos.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tacos.c')
-rw-r--r--tests/tacos.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/tacos.c b/tests/tacos.c
index 38653a4..6ad1cc6 100644
--- a/tests/tacos.c
+++ b/tests/tacos.c
@@ -1,6 +1,6 @@
/* tacos -- test file for mpc_acos.
-Copyright (C) 2009 INRIA
+Copyright (C) 2009, 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_acos (P[1].mpc, P[2].mpc, P[3].mpc_rnd)
+#define MPC_FUNCTION_CALL_REUSE_OP1 \
+ P[0].mpc_inex = mpc_acos (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_acos);
-
test_start ();
- data_check (f, "acos.dat");
- tgeneric (f, 2, 512, 7, 7);
+ data_check_template ("acos.dsc", "acos.dat");
+
+ tgeneric_template ("acos.dsc", 2, 512, 7, 7);
test_end ();