From 088e0c645a73f825883decccf69820bdc12079d8 Mon Sep 17 00:00:00 2001 From: Louis Langholtz Date: Sun, 7 Jan 2024 22:34:25 -0700 Subject: [PATCH] Updates SetManifold test to use valid UnitVec to avoid asserts in debug tests --- UnitTests/AabbTreeWorld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnitTests/AabbTreeWorld.cpp b/UnitTests/AabbTreeWorld.cpp index d4bfb418a..a5eaf9be8 100644 --- a/UnitTests/AabbTreeWorld.cpp +++ b/UnitTests/AabbTreeWorld.cpp @@ -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