summaryrefslogtreecommitdiff
path: root/tests/tset_z.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_z.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_z.c')
-rw-r--r--tests/tset_z.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tset_z.c b/tests/tset_z.c
index f0f49f5fc..f733b4f40 100644
--- a/tests/tset_z.c
+++ b/tests/tset_z.c
@@ -94,27 +94,27 @@ check_large (void)
/* check overflow */
emax = mpfr_get_emax ();
- mpfr_set_emax (2);
+ set_emax (2);
mpz_set_str (z, "7", 10);
mpfr_set_z (x, z, GMP_RNDU);
MPFR_ASSERTN(mpfr_inf_p (x) && mpfr_sgn (x) > 0);
- mpfr_set_emax (3);
+ set_emax (3);
mpfr_set_prec (x, 2);
mpz_set_str (z, "7", 10);
mpfr_set_z (x, z, GMP_RNDU);
MPFR_ASSERTN(mpfr_inf_p (x) && mpfr_sgn (x) > 0);
- mpfr_set_emax (emax);
+ set_emax (emax);
/* check underflow */
emin = mpfr_get_emin ();
- mpfr_set_emin (3);
+ set_emin (3);
mpz_set_str (z, "1", 10);
mpfr_set_z (x, z, GMP_RNDZ);
MPFR_ASSERTN(mpfr_cmp_ui (x, 0) == 0 && MPFR_IS_POS(x));
- mpfr_set_emin (2);
+ set_emin (2);
mpfr_set_z (x, z, GMP_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (x, 0) == 0 && MPFR_IS_POS(x));
- mpfr_set_emin (emin);
+ set_emin (emin);
mpz_clear (z);
mpfr_clear (x);