Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Söderlund committed Sep 11, 2024
1 parent fec55e1 commit b4cad65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ unittest(test_solve_angular_constraint) {

float base_angle = atan2(100, 100);

assertEqualFloat(base_angle, fabrik2D_4_3DOF.getBaseAngle(), 1e-3);
assertEqualFloat(base_angle, fabrik2D.getBaseAngle(), 1e-3);

assertEqualFloat(100, fabrik2D_4_3DOF.getX(3), fabrik2D_4_3DOF.getTolerance());
assertEqualFloat(100, fabrik2D_4_3DOF.getY(3), fabrik2D_4_3DOF.getTolerance());
assertEqualFloat(100, fabrik2D_4_3DOF.getZ(3), fabrik2D_4_3DOF.getTolerance());
assertEqualFloat(-M_PI / 2.0, fabrik2D_4_3DOF.getAngle(1), M_PI / 50.0);
assertEqualFloat(100, fabrik2D.getX(3), fabrik2D.getTolerance());
assertEqualFloat(100, fabrik2D.getY(3), fabrik2D.getTolerance());
assertEqualFloat(100, fabrik2D.getZ(3), fabrik2D.getTolerance());
assertEqualFloat(-M_PI / 2.0, fabrik2D.getAngle(1), M_PI / 50.0);
}

unittest(test_getters_setters) {
Expand Down

0 comments on commit b4cad65

Please sign in to comment.