diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-09-23 15:54:34 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-09-23 15:54:34 +0000 |
commit | 884e1c36a16bbfd50f3900ab8c9c797c94b3452a (patch) | |
tree | efee0bf35a61bfe1b20ce414281e086500de8326 /tests/tsub_ui.c | |
parent | 86b3bc4ee78196ca7bf665c403d19f43e189f710 (diff) | |
download | mpc-884e1c36a16bbfd50f3900ab8c9c797c94b3452a.tar.gz |
tests/tgeneric_ccu.c: random tests for complex functions of two variables : the first one of type mpc_t and the second one of type unsigned long; and tests for parameter reuse.
tests/Makefile.am: add tgeneric_ccu.c to EXTRA_DIST and add new tests files.
tadd_ui.c tsub_ui.c tmul_ui.c tdiv_ui.c tmul_2exp.c tdiv_2exp.c: use tgeneric_ccu.c.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@189 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tsub_ui.c')
-rw-r--r-- | tests/tsub_ui.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/tsub_ui.c b/tests/tsub_ui.c new file mode 100644 index 0000000..811aa63 --- /dev/null +++ b/tests/tsub_ui.c @@ -0,0 +1,41 @@ +/* test file for mpc_sub_ui. + +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_ui +#include "tgeneric_ccu.c" + +int +main (void) +{ + test_start (); + + tgeneric (2, 1024, 7, -1); + + test_end (); + + return 0; +} |