summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-11-23 13:09:39 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-11-23 13:09:39 +0000
commit97dc33c5cfcf53c4277a1f51ac40f90403a298ee (patch)
treec1fb1b28502ba0d7de5e9fe0157493c2cdb8c9cf /tests
parentf4124dc00af02498d6ded957a52de85e91985ea9 (diff)
downloadmpfr-97dc33c5cfcf53c4277a1f51ac40f90403a298ee.tar.gz
tests/tj0.c: fixed test.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4982 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/tj0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tj0.c b/tests/tj0.c
index 4a49206bb..e98e10309 100644
--- a/tests/tj0.c
+++ b/tests/tj0.c
@@ -95,8 +95,8 @@ main (int argc, char *argv[])
mpfr_set_prec (x, 7);
mpfr_set_prec (y, 7);
mpfr_set_si (x, -100, GMP_RNDN);
- mpfr_j0 (x, x, GMP_RNDN);
- MPFR_ASSERTN(mpfr_cmp_ui_2exp (y, 41, -11) == 0);
+ mpfr_j0 (y, x, GMP_RNDN);
+ MPFR_ASSERTN (! mpfr_nan_p (y) && mpfr_cmp_ui_2exp (y, 41, -11) == 0);
mpfr_clear (x);
mpfr_clear (y);