Skip to content

Commit

Permalink
Attempts to test newly uncovvered paths of SetContact
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-langholtz committed Dec 24, 2023
1 parent 1c76ae7 commit af490f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UnitTests/AabbTreeWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ TEST(AabbTreeWorld, SetContact)
EXPECT_THROW(SetContact(world, ContactID(0), contact0), InvalidArgument);
contact0.UnsetSensor();
EXPECT_NO_THROW(SetContact(world, ContactID(0), contact0));
EXPECT_THROW(SetContact(world, ContactID(0), Contact{cA, Contactable{bodyId0, ShapeID(0), 0u}}), InvalidArgument);
EXPECT_THROW(SetContact(world, ContactID(0), Contact{Contactable{bodyId1, ShapeID(0), 0u}, cB}), InvalidArgument);
SetLocation(body1, Length2{10_m, 10_m});
SetBody(world, bodyId1, body1);
Step(world, step);
Expand Down

0 comments on commit af490f3

Please sign in to comment.