diff options
author | Philippe Theveny <philippe.theveny@laposte.net> | 2014-01-20 18:19:00 +0000 |
---|---|---|
committer | Philippe Theveny <philippe.theveny@laposte.net> | 2014-01-20 18:19:00 +0000 |
commit | 098a9b3905fcb9db710e3890f1553716f78bf794 (patch) | |
tree | f680c4ae852201766e91e0e07ba46dc6e34f5cf1 /tests/tsub.c | |
parent | a78b9b4bc767c1d10c5101929c91cadcfd904283 (diff) | |
download | mpc-git-098a9b3905fcb9db710e3890f1553716f78bf794.tar.gz |
New test framework, merged from test branch.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1416 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tsub.c')
-rw-r--r-- | tests/tsub.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/tests/tsub.c b/tests/tsub.c index 658c81e..f9e6e74 100644 --- a/tests/tsub.c +++ b/tests/tsub.c @@ -1,6 +1,6 @@ /* tsub -- test file for mpc_sub. -Copyright (C) 2008, 2011 INRIA +Copyright (C) 2008, 2011, 2013 INRIA This file is part of GNU MPC. @@ -20,15 +20,24 @@ 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_sub (P[1].mpc, P[2].mpc, P[3].mpc, P[4].mpc_rnd) +#define MPC_FUNCTION_CALL_REUSE_OP1 \ + P[0].mpc_inex = mpc_sub (P[1].mpc, P[1].mpc, P[3].mpc, P[4].mpc_rnd) +#define MPC_FUNCTION_CALL_REUSE_OP2 \ + P[0].mpc_inex = mpc_sub (P[1].mpc, P[2].mpc, P[1].mpc, P[4].mpc_rnd) + +#include "data_check.tpl" +#include "tgeneric.tpl" + int main (void) { - DECL_FUNC (C_CC, f, mpc_sub); - test_start (); - data_check (f, "sub.dat"); - tgeneric (f, 2, 1024, 7, -1); + data_check_template ("sub.dsc", "sub.dat"); + + tgeneric_template ("sub.dsc", 2, 1024, 7, 128); test_end (); |