summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-04-24 10:33:36 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-04-24 10:33:36 +0000
commitc6395d0fbc71b64f4a940f85e7ea1fd00cdca876 (patch)
tree84fe6096f903695dcd538142185dceb08397f6c5 /tests
parentde6e85c9e773bc3b3b575570453d9c0bf700c984 (diff)
downloadmpfr-c6395d0fbc71b64f4a940f85e7ea1fd00cdca876.tar.gz
[tests/tpowr.c] Added generic tests.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14504 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/tpowr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tpowr.c b/tests/tpowr.c
index eb4b3c89c..a26dd7d45 100644
--- a/tests/tpowr.c
+++ b/tests/tpowr.c
@@ -199,6 +199,11 @@ check_ieee754_2019 (void)
mpfr_clear (z);
}
+#define TEST_FUNCTION mpfr_powr
+#define TWO_ARGS
+#define TEST_RANDOM_POS 16 /* the 2nd argument is negative with prob. 16/512 */
+#include "tgeneric.c"
+
int
main (int argc, char **argv)
{
@@ -206,6 +211,8 @@ main (int argc, char **argv)
check_ieee754_2019 ();
+ test_generic (MPFR_PREC_MIN, 100, 100);
+
tests_end_mpfr ();
return 0;
}