From 6df26ed2969586a164d4eb751a1d8fd5073461b6 Mon Sep 17 00:00:00 2001 From: Louis Langholtz Date: Tue, 16 Jan 2024 20:20:13 -0700 Subject: [PATCH] Adds testing of default constructed values of ContactFeature --- UnitTests/ContactFeature.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/UnitTests/ContactFeature.cpp b/UnitTests/ContactFeature.cpp index e46d4fc168..bb103f807a 100644 --- a/UnitTests/ContactFeature.cpp +++ b/UnitTests/ContactFeature.cpp @@ -33,6 +33,16 @@ TEST(ContactFeature, ByteSizeIs4) EXPECT_EQ(sizeof(ContactFeature), std::size_t(4)); } +TEST(ContactFeature, DefaultConstruction) +{ + const auto v = ContactFeature{}; + EXPECT_EQ(v.typeA, ContactFeature::e_vertex); + EXPECT_EQ(v.typeB, ContactFeature::e_vertex); + EXPECT_EQ(v.other, 0u); + EXPECT_EQ(v.indexA, InvalidVertex); + EXPECT_EQ(v.indexB, InvalidVertex); +} + TEST(ContactFeature, Init) { const auto typeA = ContactFeature::e_vertex;