summaryrefslogtreecommitdiff
path: root/tests/tproj.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tproj.c')
-rw-r--r--tests/tproj.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/tproj.c b/tests/tproj.c
index 222b697..c63e5b0 100644
--- a/tests/tproj.c
+++ b/tests/tproj.c
@@ -1,6 +1,6 @@
/* tproj -- test file for mpc_proj.
-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_proj (P[1].mpc, P[2].mpc, P[3].mpc_rnd)
+#define MPC_FUNCTION_CALL_REUSE_OP1 \
+ P[0].mpc_inex = mpc_proj (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_proj);
-
test_start ();
- tgeneric (f, 2, 1024, 1, 4096);
- data_check (f, "proj.dat");
+ data_check_template ("proj.dsc", "proj.dat");
+
+ tgeneric_template ("proj.dsc", 2, 1024, 1, 4096);
test_end ();