summaryrefslogtreecommitdiff
path: root/tests/tui_div.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-09-24 13:41:48 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-09-24 13:41:48 +0000
commit4f15f0d5f312e153abf68a4469acdc01e6d83bda (patch)
tree5ab66820a773cb6f2197a139b98e3758bc972e3e /tests/tui_div.c
parent98ed121350c5268707947cdbf8f0d1cbd3d837cd (diff)
downloadmpc-4f15f0d5f312e153abf68a4469acdc01e6d83bda.tar.gz
tgeneric_fc.c: random tests for real functions of one complex variable and tests for parameter reuse.
tnorm.c tabs.c: use tgeneric_fc.c tgeneric_ccs.c:random tests for complex functions of two variables : the first one of type mpfr_t and the second one of type (signed) long int; and tests for parameter reuse. tmul_si.c: use tgeneric_ccs.c tgeneric_cuc.c:random tests for complex functions of two variables : the first one of type unsigned long and the second one of type mpc_t; and tests for parameter reuse. tui_div.c tui_sub.c: use tgeneric_cuc.c tgeneric_cuuc.c: random tests for complex functions of three variables : the first and second one of type unsigned long and the third one of type mpc_t; and tests for parameter reuse. tui_ui_sub.c: use tgeneric_cuuc.c Makefile.am: add tgeneric_fc.c, tgeneric_ccs.c, tgeneric_cuc.c, and tgeneric_cuuc.c to EXTRA_DIST, and add new tests files. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@198 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tui_div.c')
-rw-r--r--tests/tui_div.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/tui_div.c b/tests/tui_div.c
new file mode 100644
index 0000000..f930fb6
--- /dev/null
+++ b/tests/tui_div.c
@@ -0,0 +1,41 @@
+/* test file for mpc_ui_div.
+
+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_ui_div
+#include "tgeneric_cuc.c"
+
+int
+main (void)
+{
+ test_start ();
+
+ tgeneric (2, 1024, 7, 4096);
+
+ test_end ();
+
+ return 0;
+}