Skip to content

Commit

Permalink
Fix library API test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jul 29, 2024
1 parent e0188e0 commit 29b05f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestOpenSimCreator/MetaTests/TestOpenSimLibraryAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ TEST(OpenSimModel, CoordinateCouplerConstraintWorksWithMultiVariatePolynomialWit

// user report: if you load a model containing a `CoordinateCouplerConstraint` and then change
// the value of the independent coordinates (tx, rx, or ry), OSC will freeze
for (auto coord : {"tx", "rx", "ry"}) {
std::string fullPath = std::string{"/jointset/freejoint/"} + coord;
for (auto coordName : {"tx", "rx", "ry"}) {
std::string fullPath = std::string{"/jointset/freejoint/"} + coordName;
auto& coord = model.updComponent<OpenSim::Coordinate>(fullPath);
coord.set_default_value(coord.get_default_value() + 1.0); // change it at the model-level
model.buildSystem(); // shouldn't have any problems
Expand Down

0 comments on commit 29b05f6

Please sign in to comment.