Skip to content

Commit

Permalink
Improve code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Oct 8, 2023
1 parent ed6f2d5 commit 1316151
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Link_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ TEST(DOMLink, Construction)
EXPECT_TRUE(inertial.MassMatrix().IsValid());

EXPECT_FALSE(link.Density().has_value());
const double density = 123.0;
link.SetDensity(density);
ASSERT_TRUE(link.Density().has_value());
EXPECT_DOUBLE_EQ(density, *link.Density());

EXPECT_EQ(0u, link.CollisionCount());
EXPECT_EQ(nullptr, link.CollisionByIndex(0));
Expand Down

0 comments on commit 1316151

Please sign in to comment.