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/tadd_ui.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/tadd_ui.c')
-rw-r--r-- | tests/tadd_ui.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/tadd_ui.c b/tests/tadd_ui.c index 4f8efea..a62979d 100644 --- a/tests/tadd_ui.c +++ b/tests/tadd_ui.c @@ -1,6 +1,6 @@ /* tadd_ui -- test file for mpc_add_ui. -Copyright (C) 2008, 2010, 2012 INRIA +Copyright (C) 2008, 2010, 2012, 2013 INRIA This file is part of GNU MPC. @@ -52,15 +52,21 @@ check_ternary_value (void) mpc_clear (z); } +#define MPC_FUNCTION_CALL \ + P[0].mpc_inex = mpc_add_ui (P[1].mpc, P[2].mpc, P[3].ui, P[4].mpc_rnd) +#define MPC_FUNCTION_CALL_REUSE_OP1 \ + P[0].mpc_inex = mpc_add_ui (P[1].mpc, P[1].mpc, P[3].ui, P[4].mpc_rnd) + +#include "tgeneric.tpl" + int main (void) { - DECL_FUNC (CCU, f, mpc_add_ui); - test_start (); check_ternary_value (); - tgeneric (f, 2, 1024, 7, -1); + + tgeneric_template ("add_ui.dsc", 2, 1024, 1, 1024); test_end (); |