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/timag.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/timag.c')
-rw-r--r-- | tests/timag.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/timag.c b/tests/timag.c index 47cf52c..3d427ba 100644 --- a/tests/timag.c +++ b/tests/timag.c @@ -1,6 +1,6 @@ /* timag -- test file for mpc_imag. -Copyright (C) 2008 INRIA +Copyright (C) 2008, 2013 INRIA This file is part of GNU MPC. @@ -20,14 +20,17 @@ along with this program. If not, see http://www.gnu.org/licenses/ . #include "mpc-tests.h" +#define MPC_FUNCTION_CALL \ + P[0].mpfr_inex = mpc_imag (P[1].mpfr, P[2].mpc, P[3].mpfr_rnd) + +#include "tgeneric.tpl" + int main (void) { - DECL_FUNC (FC, f, mpc_imag); - test_start (); - tgeneric (f, 2, 1024, 1, 4096); + tgeneric_template ("imag.dsc", 2, 1024, 1, 4096); test_end (); |