u02/tests: Lower target precision for barycentric coordinates
This commit is contained in:
parent
d1b49d696a
commit
8528d673d0
|
@ -438,7 +438,7 @@ TEST_CASE("Barycentric coordinates (prop: Σ = 1)") {
|
||||||
|
|
||||||
// If all points are on a straight line, the property does not hold
|
// If all points are on a straight line, the property does not hold
|
||||||
if (!(x0 == x1 && x1 == x2) && !(y0 == y1 && y1 == y2)) {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue