summaryrefslogtreecommitdiff
path: root/tests/texceptions.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2004-10-26 01:49:26 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2004-10-26 01:49:26 +0000
commitc095768f11e0d5034a15efdd4c5d9938f9683433 (patch)
tree1a429d1984c151a0e0c9c1bf80ee68a6b7702f0c /tests/texceptions.c
parent1183042badcf844d47a624f900f53c04292b3372 (diff)
downloadmpfr-c095768f11e0d5034a15efdd4c5d9938f9683433.tar.gz
Replaced mpfr_set_emin/emax by set_emin/emax in tests to check
the return value; defined set_emin/emax in "tests/tests.c". Fix: added missing #include <string.h> in "tests/tests.c". Removed variable names in prototypes in "mpfr-test.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3058 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/texceptions.c')
-rw-r--r--tests/texceptions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/texceptions.c b/tests/texceptions.c
index 0d99daaec..1ff15158f 100644
--- a/tests/texceptions.c
+++ b/tests/texceptions.c
@@ -82,8 +82,8 @@ mpfr_set_double_range (void)
(We have to add one for mpfr since mantissa are between 1/2 and 1.)
*/
- mpfr_set_emin (-1021);
- mpfr_set_emax (1024);
+ set_emin (-1021);
+ set_emax (1024);
}
static void
@@ -249,7 +249,7 @@ main (int argc, char *argv[])
exit (1);
}
- mpfr_set_emax (1025);
+ set_emax (1025);
mpfr_set_ui (x, 1, GMP_RNDN);
mpfr_mul_2exp (x, x, 1024, GMP_RNDN);
mpfr_set_double_range ();
@@ -293,7 +293,7 @@ main (int argc, char *argv[])
exit (1);
}
- mpfr_set_emin (-1026);
+ set_emin (-1026);
mpfr_set_ui (x, 1, GMP_RNDN);
mpfr_div_2exp (x, x, 1025, GMP_RNDN);
mpfr_set_double_range ();