summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2013-11-06 14:54:45 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2013-11-06 14:54:45 +0000
commit4398f9ff9ad81119a7d3b57a538d85cb1b6303a8 (patch)
tree34fd6114e321737a9443cad88aab11f8472eda97
parent7e8a41cbd5ceeeb3c0067280c45dd3367189e460 (diff)
downloadmpfr-4398f9ff9ad81119a7d3b57a538d85cb1b6303a8.tar.gz
[tests/thypot.c] More NaN tests.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8703 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/thypot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/thypot.c b/tests/thypot.c
index b8d6a0c14..e3140786e 100644
--- a/tests/thypot.c
+++ b/tests/thypot.c
@@ -35,8 +35,13 @@ special (void)
mpfr_init (z);
mpfr_set_nan (x);
+ mpfr_set_ui (y, 0, MPFR_RNDN);
mpfr_hypot (z, x, x, MPFR_RNDN);
MPFR_ASSERTN(mpfr_nan_p (z));
+ mpfr_hypot (z, x, y, MPFR_RNDN);
+ MPFR_ASSERTN(mpfr_nan_p (z));
+ mpfr_hypot (z, y, x, MPFR_RNDN);
+ MPFR_ASSERTN(mpfr_nan_p (z));
mpfr_set_inf (x, 1);
mpfr_set_inf (y, -1);