diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2013-11-06 14:54:45 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2013-11-06 14:54:45 +0000 |
commit | 4398f9ff9ad81119a7d3b57a538d85cb1b6303a8 (patch) | |
tree | 34fd6114e321737a9443cad88aab11f8472eda97 | |
parent | 7e8a41cbd5ceeeb3c0067280c45dd3367189e460 (diff) | |
download | mpfr-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.c | 5 |
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); |