summaryrefslogtreecommitdiff
path: root/tests/thypot.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-01-31 11:02:21 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-01-31 11:02:21 +0000
commit070587279951e953938c529abbe09d90f991d130 (patch)
treeb5d88add6712682398b79442feb7b0a44c86b8c5 /tests/thypot.c
parent52017aa9dda8bf7c3a1b81d9ebe465796d03891b (diff)
downloadmpfr-070587279951e953938c529abbe09d90f991d130.tar.gz
[tests/*.c] When not in a test, use set_emin and set_emax rather than
mpfr_set_emin and mpfr_set_emax, in order to check failures. Done with: perl -pi -e 's/^ *\Kmpfr_(set_e(min|max) *\()/\1/' *.c git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14284 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/thypot.c')
-rw-r--r--tests/thypot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/thypot.c b/tests/thypot.c
index 86c355d05..0342b4594 100644
--- a/tests/thypot.c
+++ b/tests/thypot.c
@@ -325,14 +325,14 @@ bug20171221 (void)
mpfr_set_str_binary (x, "0.111111111110E0");
mpfr_set_str_binary (u, "0.111011110100E-177");
emax = mpfr_get_emax ();
- mpfr_set_emax (0);
+ set_emax (0);
mpfr_clear_flags ();
inex = mpfr_hypot (y, x, u, MPFR_RNDU);
MPFR_ASSERTN(mpfr_inf_p (y) && mpfr_sgn (y) > 0);
MPFR_ASSERTN(inex > 0);
MPFR_ASSERTN(mpfr_inexflag_p ());
MPFR_ASSERTN(mpfr_overflow_p ());
- mpfr_set_emax (emax);
+ set_emax (emax);
mpfr_clear (x);
mpfr_clear (u);
mpfr_clear (y);