Skip to content

Commit

Permalink
Add test files for createExternalLoadsTableForGait() test
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbianco committed Sep 28, 2024
1 parent 18d77da commit 0600bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion OpenSim/Moco/Test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ MocoAddTest(NAME testMocoImplicit)

MocoAddTest(NAME testMocoConstraints)

MocoAddTest(NAME testMocoContact)
MocoAddTest(NAME testMocoContact RESOURCES
subject_20dof18musc_running.osim
running_solution_full_stride.sto)

MocoAddTest(NAME testMocoControllers)

Expand Down
2 changes: 1 addition & 1 deletion OpenSim/Moco/Test/testMocoContact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,6 @@ TEST_CASE("createExternalLoadsTableForGait") {
// Compare accelerations.
SimTK::Vector error = state.getUDot() - stateNoContact.getUDot();
CAPTURE(error);
CHECK_THAT(error.norm(), Catch::Matchers::WithinAbs(0, 1e-6));
CHECK_THAT(error.norm(), Catch::Matchers::WithinAbs(0, 1e-8));
}
}

0 comments on commit 0600bc0

Please sign in to comment.