X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-truncf2.c;h=a0b7e6c794d10d604f895e07e8d88e3bd93e5ce6;hb=174af8a731d5ae17339dd5b69c0de0b7f24be594;hp=c511cb1ebf85ce44045c8facc0731d37e1123d82;hpb=3db9b0d802e34ec28fc924076ae4c196bd7d23a9;p=gnulib.git diff --git a/tests/test-truncf2.c b/tests/test-truncf2.c index c511cb1eb..a0b7e6c79 100644 --- a/tests/test-truncf2.c +++ b/tests/test-truncf2.c @@ -113,10 +113,10 @@ correct_result_p (DOUBLE x, DOUBLE result) return (x >= 0 ? (x < 1 ? result == L_(0.0) : - x - 1 < x ? result <= x && result > x - 1 : + x - 1 < x ? result <= x && result >= x - 1 && x - result < 1 : equal (result, x)) : (x > -1 ? result == L_(0.0) : - x + 1 > x ? result >= x && result < x + 1 : + x + 1 > x ? result >= x && result <= x + 1 && result - x < 1 : equal (result, x))); }