Skip to content

Commit

Permalink
Adds testing of default constructed values of ContactFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-langholtz committed Jan 17, 2024
1 parent 2784ae5 commit 6df26ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions UnitTests/ContactFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6df26ed

Please sign in to comment.