Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquealrs committed Jul 23, 2024
1 parent a221386 commit aee3429
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/integration/test_Collision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,10 @@ void testSphereSphere(
EXPECT_TRUE(group->collide(option, &result));
// TODO(JS): BulletCollisionDetector includes a bug related to this.
// (see #876)
#if HAVE_BULLET || HAVE_ODE
if (cd->getType() != BulletCollisionDetector::getStaticType()
&& cd->getType() != OdeCollisionDetector::getStaticType())
#endif
{

constexpr auto hasOde = (HAVE_ODE == 1);
constexpr auto hasBullet = (HAVE_BULLET == 1);
if constexpr (!hasOde && !hasBullet) {
EXPECT_EQ(result.getNumContacts(), 1u);
}
for (auto i = 0u; i < result.getNumContacts(); ++i) {
Expand Down

0 comments on commit aee3429

Please sign in to comment.