mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-04 11:14:17 +08:00
Try to fix flatpak arm build.
Flatpak arm build seems to fail on precision in a single test. Allow for bigger margin.
This commit is contained in:
parent
092721ab0a
commit
f1027116e7
@ -33,7 +33,7 @@ TEST_CASE("Distance to line", "[Point]") {
|
|||||||
|
|
||||||
TEST_CASE("Distance to diagonal line", "[Point]") {
|
TEST_CASE("Distance to diagonal line", "[Point]") {
|
||||||
const Line line{{50, 50}, {125, -25}};
|
const Line line{{50, 50}, {125, -25}};
|
||||||
CHECK(std::abs(line.distance_to(Point{100, 0})) == Approx(0));
|
CHECK_THAT(std::abs(line.distance_to(Point{100, 0})), Catch::Matchers::WithinAbs(0, 1e-6));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Perp distance to line does not overflow", "[Point]") {
|
TEST_CASE("Perp distance to line does not overflow", "[Point]") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user