Skip to content

Commit

Permalink
Have test succeed on all architectures (#475)
Browse files Browse the repository at this point in the history
Fix test failing on secondary architectures (aarch64, ppc64le and s390x).
  • Loading branch information
penguinpee authored Sep 25, 2023
1 parent bdccf36 commit 89fcfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ TEST_CASE("morphio::shared_utils") {
const std::vector<floatType> diameters = {0.1, 0.1, 0.1};
Point expected{1 / floatType{3}, 2 / floatType{3}, 2 / floatType{3}};
CHECK(centerOfGravity(points) == expected);
CHECK(maxDistanceToCenterOfGravity(points) == 1);
CHECK(maxDistanceToCenterOfGravity(points) == Approx(1));
CHECK_THROWS(_somaSurface(SOMA_SIMPLE_CONTOUR, diameters, points));
}
/* CHECK(_somaSurface(SOMA_SINGLE_POINT, diameters, points) == Approx(0.0)); */
Expand Down

0 comments on commit 89fcfe3

Please sign in to comment.