summaryrefslogtreecommitdiff
path: root/tests/tset_str.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/tset_str.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/tset_str.c')
-rw-r--r--tests/tset_str.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tset_str.c b/tests/tset_str.c
index 1b6d8fe72..be520eb07 100644
--- a/tests/tset_str.c
+++ b/tests/tset_str.c
@@ -55,7 +55,7 @@ check_underflow (void)
/* Check underflow */
emin = mpfr_get_emin ();
- mpfr_set_emin (-20);
+ set_emin (-20);
res = mpfr_set_str (a, "0.00000000001", 10, GMP_RNDZ);
if (!MPFR_IS_ZERO (a))
{
@@ -65,18 +65,18 @@ check_underflow (void)
mpfr_dump (a);
exit (1);
}
- mpfr_set_emin (emin);
+ set_emin (emin);
/* check overflow */
emax = mpfr_get_emax ();
- mpfr_set_emax (1073741823); /* 2^30-1 */
+ set_emax (1073741823); /* 2^30-1 */
mpfr_set_str (a, "2E1000000000", 10, GMP_RNDN);
if (!mpfr_inf_p (a) || mpfr_sgn (a) < 0)
{
printf("ERROR for mpfr_set_str (a, \"2E1000000000\", 10, GMP_RNDN);\n");
exit (1);
}
- mpfr_set_emax (emax);
+ set_emax (emax);
mpfr_clear (a);
}