summaryrefslogtreecommitdiff
path: root/tests/tadd_fr.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tadd_fr.c')
-rw-r--r--tests/tadd_fr.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/tadd_fr.c b/tests/tadd_fr.c
index 0f1a5cf..225a32d 100644
--- a/tests/tadd_fr.c
+++ b/tests/tadd_fr.c
@@ -1,6 +1,6 @@
/* tadd_fr -- test file for mpc_add_fr.
-Copyright (C) 2008, 2010, 2012 INRIA
+Copyright (C) 2008, 2010, 2012, 2013 INRIA
This file is part of GNU MPC.
@@ -56,17 +56,26 @@ check_ternary_value (mpfr_prec_t prec_max, mpfr_prec_t step)
mpfr_clear (f);
}
+#define MPC_FUNCTION_CALL \
+ P[0].mpc_inex = mpc_add_fr (P[1].mpc, P[2].mpc, P[3].mpfr, P[4].mpc_rnd)
+#define MPC_FUNCTION_CALL_REUSE_OP1 \
+ P[0].mpc_inex = mpc_add_fr (P[1].mpc, P[1].mpc, P[3].mpfr, P[4].mpc_rnd)
+
+#include "data_check.tpl"
+#include "tgeneric.tpl"
+
int
main (void)
{
- DECL_FUNC (CCF, f, mpc_add_fr);
test_start ();
check_ternary_value (1024, 1);
- data_check (f, "add_fr.dat");
- tgeneric (f, 2, 1024, 7, 10);
+ data_check_template ("add_fr.dsc", "add_fr.dat");
+
+ tgeneric_template ("add_fr.dsc", 2, 1024, 7, 128);
test_end ();
+
return 0;
}