summaryrefslogtreecommitdiff
path: root/tests/tconj.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-09-19 13:28:37 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-09-19 13:28:37 +0000
commit30b78cf056358b55930b4f579a4eb625cc2b535d (patch)
tree1825135733dfb52ac2c99acf8cd5f5c37fde1f5e /tests/tconj.c
parent017bceb58af7101f066c3b3a149a44f8e68b1a5b (diff)
downloadmpc-30b78cf056358b55930b4f579a4eb625cc2b535d.tar.gz
tests/tgeneric_cc.c: random tests for complex functions of one complex variable and tests for parameter reuse.
tests/Makefile.am: add tgeneric.cc plus some tests files tconj, tneg tests/tlog.c tests/ttan.c tests/tcos.c tests/tsin.c tests/tsqrt.c tests/tconj.c tests/ttanh.c tests/tcosh.c tests/texp.c tests/tsinh.c tests/tsqr.c tests/tneg.c: use tgeneric_cc.c git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@182 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tconj.c')
-rw-r--r--tests/tconj.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/tconj.c b/tests/tconj.c
new file mode 100644
index 0000000..cf7d376
--- /dev/null
+++ b/tests/tconj.c
@@ -0,0 +1,43 @@
+/* tconj -- test file for mpc_conj.
+
+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 <stdlib.h>
+#include "gmp.h"
+#include "mpfr.h"
+#include "mpc.h"
+#include "mpc-impl.h"
+
+#include "random.c"
+#define TEST_FUNCTION mpc_conj
+#include "tgeneric_cc.c"
+
+int
+main (void)
+{
+ test_start ();
+
+ tgeneric (2, 1024, 1, 0);
+
+ test_end ();
+
+ return 0;
+}