Skip to content

Commit

Permalink
Updates SetManifold test to use valid UnitVec to avoid asserts in deb…
Browse files Browse the repository at this point in the history
…ug tests
  • Loading branch information
louis-langholtz committed Jan 8, 2024
1 parent 65f50b6 commit 088e0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnitTests/AabbTreeWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ TEST(AabbTreeWorld, SetManifold)
ASSERT_EQ(imp1[1], 0_Ns);
auto newValue = Manifold();
EXPECT_THROW(SetManifold(world, ContactID(0), newValue), InvalidArgument); // can't change type
newValue = Manifold::GetForFaceA(UnitVec{}, Length2{});
newValue = Manifold::GetForFaceA(UnitVec::GetLeft(), Length2{});
ASSERT_EQ(unsigned(newValue.GetType()), unsigned(original.GetType()));
ASSERT_NE(unsigned(newValue.GetPointCount()), unsigned(original.GetPointCount()));
EXPECT_THROW(SetManifold(world, ContactID(0), newValue), InvalidArgument); // can't change point count
Expand Down

0 comments on commit 088e0c6

Please sign in to comment.