u02/tests: Lower target precision for barycentric coordinates

Simon Bruder 2023-05-09 22:03:45 +02:00
parent e720dc6ebc
commit a935e0fd22
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}