diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-09-24 08:54:26 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-09-24 08:54:26 +0000 |
commit | fa6412ec155558f2768f83228a3f339ba6753bf8 (patch) | |
tree | 6a567f568bce7936fc98102ba6eacbb3c89adb72 /tests/tsub_fr.c | |
parent | e91fd651f2425da43bd49bc00f85c233fea3860a (diff) | |
download | mpc-fa6412ec155558f2768f83228a3f339ba6753bf8.tar.gz |
tgeneric_ccf.c: random tests for complex functions of two variables : the first one of type mpc_t and the second one of type mpfr_t; and tests for parameter reuse.
Makefile.am: add tgeneric_ccf.c to EXTRA_DIST and add new tests files.
tsub_fr.c tmul_fr.c tdiv_fr.c tadd_fr.c: use tgeneric_ccf.c
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@192 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tsub_fr.c')
-rw-r--r-- | tests/tsub_fr.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/tsub_fr.c b/tests/tsub_fr.c new file mode 100644 index 0000000..ee6bfaf --- /dev/null +++ b/tests/tsub_fr.c @@ -0,0 +1,41 @@ +/* test file for mpc_sub_fr. + +Copyright (C) 2008 Philippe Th\'eveny + +This file is part of the MPC Library. + +The MPC Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The MPC Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the MPC Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. */ + +#include <stdio.h> +#include <gmp.h> +#include <mpfr.h> +#include "mpc.h" + +#include "random.c" +#define TEST_FUNCTION mpc_sub_fr +#include "tgeneric_ccf.c" + +int +main (void) +{ + test_start (); + + tgeneric (2, 1024, 7, -1); + + test_end (); + + return 0; +} |