diff options
Diffstat (limited to 'tests/test-trunc2.c')
-rw-r--r-- | tests/test-trunc2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-trunc2.c b/tests/test-trunc2.c index 5292ff64ff..f3238ffe2c 100644 --- a/tests/test-trunc2.c +++ b/tests/test-trunc2.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))); } |