Skip to content

Commit

Permalink
pr-feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Gauër <[email protected]>
  • Loading branch information
Keenuts committed Nov 12, 2024
1 parent 3a13688 commit dcccd44
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/enum_set_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,13 @@ TEST_P(CapabilitySetForEachTest, CopyConstructor) {
EXPECT_THAT(ElementsIn(copy), Eq(GetParam().expected));
}

TEST_P(CapabilitySetForEachTest, MoveConstructor) {
// We need a writable copy to move from.
CapabilitySet copy(GetParam().capabilities);
CapabilitySet moved(std::move(copy));
EXPECT_THAT(ElementsIn(moved), Eq(GetParam().expected));
}

TEST_P(CapabilitySetForEachTest, OperatorEquals) {
CapabilitySet assigned = GetParam().capabilities;
EXPECT_THAT(ElementsIn(assigned), Eq(GetParam().expected));
Expand Down

0 comments on commit dcccd44

Please sign in to comment.