From a935e0fd22c62b69ec14368a569a64cdc1d88df0 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 9 May 2023 22:03:45 +0200 Subject: [PATCH] u02/tests: Lower target precision for barycentric coordinates --- u02/src/tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u02/src/tests.cpp b/u02/src/tests.cpp index 22c028b..d3a2197 100644 --- a/u02/src/tests.cpp +++ b/u02/src/tests.cpp @@ -438,7 +438,7 @@ TEST_CASE("Barycentric coordinates (prop: Σ = 1)") { // If all points are on a straight line, the property does not hold if (!(x0 == x1 && x1 == x2) && !(y0 == y1 && y1 == y2)) { - REQUIRE_THAT(b1 + b2 + b3, WithinRel(1.0, 1e-4)); + REQUIRE_THAT(b1 + b2 + b3, WithinRel(1.0, 0.01)); } }