Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 89fcfe3

Browse files
authored
Have test succeed on all architectures (#475)
Fix test failing on secondary architectures (aarch64, ppc64le and s390x).
1 parent bdccf36 commit 89fcfe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_utilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ TEST_CASE("morphio::shared_utils") {
153153
const std::vector<floatType> diameters = {0.1, 0.1, 0.1};
154154
Point expected{1 / floatType{3}, 2 / floatType{3}, 2 / floatType{3}};
155155
CHECK(centerOfGravity(points) == expected);
156-
CHECK(maxDistanceToCenterOfGravity(points) == 1);
156+
CHECK(maxDistanceToCenterOfGravity(points) == Approx(1));
157157
CHECK_THROWS(_somaSurface(SOMA_SIMPLE_CONTOUR, diameters, points));
158158
}
159159
/* CHECK(_somaSurface(SOMA_SINGLE_POINT, diameters, points) == Approx(0.0)); */

0 commit comments

Comments
 (0)