Skip to content

Commit 50f44d3

Browse files
jorisvjcarpent
authored andcommitted
unittest: Use isApprox instead of equality
1 parent 2791fea commit 50f44d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unittest/algorithm/utils/force.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ BOOST_AUTO_TEST_CASE(test_force)
5454
{
5555
const SE3 placement_W(SE3::Matrix3::Identity(), placement.translation());
5656
Force f_sol_w = placement_W.act(f_in);
57-
BOOST_CHECK(changeReferenceFrame(placement, f_in, LOCAL_WORLD_ALIGNED, WORLD) == f_sol_w);
57+
BOOST_CHECK(
58+
changeReferenceFrame(placement, f_in, LOCAL_WORLD_ALIGNED, WORLD).isApprox(f_sol_w));
5859
BOOST_CHECK(
5960
changeReferenceFrame(placement, f_sol_w, WORLD, LOCAL_WORLD_ALIGNED).isApprox(f_in));
6061
}

0 commit comments

Comments
 (0)