diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2013-12-02 17:59:40 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2013-12-02 17:59:40 +0000 |
commit | 99a9b960a8b9a0851072b1c0abc1f156f7accca6 (patch) | |
tree | 4860fa04bc47a3e07965e4fb8c9d74bc2a64d103 | |
parent | 45d15372624b20f43f8c157836c346eae309b0e1 (diff) | |
download | mpc-99a9b960a8b9a0851072b1c0abc1f156f7accca6.tar.gz |
[tests/] Add templated generic tests for mpc_add_fr and mpc_sub_fr.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/branches/benchs_tests@1353 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r-- | tests/tadd_fr_tmpl.c | 8 | ||||
-rw-r--r-- | tests/tsub_fr_tmpl.c | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/tests/tadd_fr_tmpl.c b/tests/tadd_fr_tmpl.c index e300627..51661a8 100644 --- a/tests/tadd_fr_tmpl.c +++ b/tests/tadd_fr_tmpl.c @@ -1,6 +1,6 @@ /* tadd_fr_tmpl.c -- templated test file for mpc_add_fr. -Copyright (C) 2008, 2010, 2011, 2012 INRIA +Copyright (C) 2008, 2010, 2011, 2012, 2013 INRIA This file is part of GNU MPC. @@ -19,7 +19,6 @@ along with this program. If not, see http://www.gnu.org/licenses/ . */ #include "templates.h" -#include "mpc-tests.h" static void check_ternary_value (mpfr_prec_t prec_max, mpfr_prec_t step) @@ -62,17 +61,18 @@ check_ternary_value (mpfr_prec_t prec_max, mpfr_prec_t step) 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_template ("add_fr.dsc", "add_fr.dat"); - tgeneric (f, 2, 1024, 7, 10); + + tgeneric_template ("add_fr.dsc", 2, 1024, 7, 128); test_end (); return 0; diff --git a/tests/tsub_fr_tmpl.c b/tests/tsub_fr_tmpl.c index f6dbcf0..0f7c287 100644 --- a/tests/tsub_fr_tmpl.c +++ b/tests/tsub_fr_tmpl.c @@ -19,7 +19,6 @@ along with this program. If not, see http://www.gnu.org/licenses/ . */ #include "templates.h" -#include "mpc-tests.h" #define MPC_FUNCTION_CALL \ P[0].mpc_inex = mpc_sub_fr (P[1].mpc, P[2].mpc, P[3].mpfr, P[4].mpc_rnd) @@ -27,17 +26,16 @@ along with this program. If not, see http://www.gnu.org/licenses/ . P[0].mpc_inex = mpc_sub_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_sub_fr); - test_start (); data_check_template ("sub_fr.dsc", "sub_fr.dat"); - tgeneric (f, 2, 1024, 7, -1); + tgeneric_template ("sub_fr.dsc", 2, 1024, 7, 128); test_end (); |