From a3831a98dc98576f769a3b0d4c5b9965d8a8e26d Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 30 Mar 2015 13:40:57 +0000 Subject: [tests/tsum.c] In the check4 test, two terms didn't correspond to the formula given in the comment; corrected these terms (the same bug is triggered). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/new-sum@9354 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tsum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tsum.c b/tests/tsum.c index a01246a58..24032c97c 100644 --- a/tests/tsum.c +++ b/tests/tsum.c @@ -596,11 +596,11 @@ check4 (void) inex1 = mpfr_add (s2, s1, t[2], MPFR_RNDN); MPFR_ASSERTN (inex1 == 0); for (i = -1; i <= 1; i++) { - mpfr_set_si (t[3], i, MPFR_RNDN); + mpfr_set_si_2exp (t[3], i, -1, MPFR_RNDN); inex1 = mpfr_add (s3, s2, t[3], MPFR_RNDN); MPFR_ASSERTN (inex1 == 0); for (j = -1; j <= 1; j++) { - mpfr_set_si (t[4], j, MPFR_RNDN); + mpfr_set_si_2exp (t[4], j, -1, MPFR_RNDN); inex1 = mpfr_add (s4, s3, t[4], MPFR_RNDN); MPFR_ASSERTN (inex1 == 0); RND_LOOP (r) { -- cgit v1.2.1