summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-17 15:04:43 +0000
committerdaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-17 15:04:43 +0000
commita00046df424aab0acb69a535d869b52cfdd36dee (patch)
tree079cc6b704d28103b95a6941a5da6dccb7f7eb14 /tests
parentec829f4071249f6eb29ba04eb911ac94ac425767 (diff)
downloadmpfr-a00046df424aab0acb69a535d869b52cfdd36dee.tar.gz
add the test function of expm1
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1280 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/texpm1.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/texpm1.c b/tests/texpm1.c
new file mode 100644
index 000000000..33c521882
--- /dev/null
+++ b/tests/texpm1.c
@@ -0,0 +1,37 @@
+/* Test file for mpfr_expm1.
+
+Copyright (C) 2001 Free Software Foundation.
+Adapted from tsinh.c.
+
+This file is part of the MPFR Library.
+
+The MPFR Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Library General Public License as published by
+the Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+
+The MPFR 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 Library General Public
+License for more details.
+
+You should have received a copy of the GNU Library General Public License
+along with the MPFR 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>
+
+#define TEST_FUNCTION mpfr_expm1
+#include "tgeneric.c"
+
+int
+main (int argc, char *argv[])
+{
+ test_generic (1, 100, 100);
+
+ return 0;
+}